eslint-config-nate
Version:
62 lines (59 loc) • 2.48 kB
JavaScript
module.exports = {
env: {
browser: true, // browser global variables.
es6: true, // enable all ECMAScript 6 features except for modules (this automatically sets the ecmaVersion parser option to 6).
node: true, // Node.js global variables and Node.js scoping.
// commonjs - CommonJS global variables and CommonJS scoping (use this for browser-only code that uses Browserify/WebPack).
// shared-node-browser - Globals common to both Node.js and Browser.
// es2017 - adds all ECMAScript 2017 globals and automatically sets the ecmaVersion parser option to 8.
// es2020 - adds all ECMAScript 2020 globals and automatically sets the ecmaVersion parser option to 11.
// worker - web workers global variables.
// amd - defines require() and define() as global variables as per the amd spec.
// mocha - adds all of the Mocha testing global variables.
// jasmine - adds all of the Jasmine testing global variables for version 1.3 and 2.0.
// jest - Jest global variables.
// phantomjs - PhantomJS global variables.
// protractor - Protractor global variables.
// qunit - QUnit global variables.
// jquery - jQuery global variables.
// prototypejs - Prototype.js global variables.
// shelljs - ShellJS global variables.
// meteor - Meteor global variables.
// mongo - MongoDB global variables.
// applescript - AppleScript global variables.
// nashorn - Java 8 Nashorn global variables.
// serviceworker - Service Worker global variables.
// atomtest - Atom test helper globals.
// embertest - Ember test helper globals.
// webextensions - WebExtensions globals.
// greasemonkey - GreaseMonkey globals.
},
extends: [
's2junn-react-ts',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: [
'react',
'@typescript-eslint',
],
/* "rules"
* The first value is the error level of the rule and can be one of these values:
* 'off' or 0 - turn the rule off
* 'warn' or 1 - turn the rule on as a warning (doesn't affect exit code)
* 'error' or 2 - turn the rule on as an error (exit code will be 1)
*/
rules: {
},
};
;