Skip to content

Instantly share code, notes, and snippets.

@liuliangsir
Created April 23, 2020 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liuliangsir/5b69133e73577576771ff127947940b6 to your computer and use it in GitHub Desktop.
Save liuliangsir/5b69133e73577576771ff127947940b6 to your computer and use it in GitHub Desktop.
A configuration file for ESLint
{
"parserOptions": {
"ecmaVersion": 8,
"ecmaFeatures": {}
},
"env": {
"es6": true,
"es2017": true,
"browser": true
},
"extends": [
"eslint:recommended"
],
"globals": {
"ac": true,
"EASE_TYPES": true,
"EVENT_TYPES": true,
"HALIGN_TYPES": true,
"VALIGN_TYPES": true,
"DRAG_DIRECTION_TYPES": true,
"TEXT_DIRECTION_TYPES": true
},
"rules": {
"constructor-super": 1,
"for-direction": 1,
"getter-return": 1,
"no-async-promise-executor": 1,
"no-case-declarations": 1,
"no-class-assign": 1,
"no-compare-neg-zero": 1,
"no-cond-assign": 1,
"no-const-assign": 1,
"no-constant-condition": 1,
"no-control-regex": 1,
"no-debugger": 1,
"no-delete-var": 1,
"no-dupe-args": 1,
"no-dupe-class-members": 1,
"no-dupe-keys": 1,
"no-duplicate-case": 1,
"no-empty-character-class": 1,
"no-empty-pattern": 1,
"no-ex-assign": 1,
"no-extra-semi": 1,
"no-fallthrough": 1,
"no-func-assign": 1,
"no-inner-declarations": 1,
"no-invalid-regexp": 1,
"no-irregular-whitespace": 1,
"no-misleading-character-class": 1,
"no-new-symbol": 1,
"no-obj-calls": 1,
"no-octal": 1,
"no-prototype-builtins": 1,
"no-redeclare": 1,
"no-regex-spaces": 1,
"no-self-assign": 1,
"no-shadow-restricted-names": 1,
"no-sparse-arrays": 1,
"no-unexpected-multiline": 1,
"no-unreachable": 1,
"no-unsafe-finally": 1,
"no-unsafe-negation": 1,
"no-unused-labels": 1,
"no-useless-catch": 1,
"no-with": 1,
"require-yield": 1,
"use-isnan": 1,
"valid-typeof": 1,
"no-eval": 1,
"no-new-func": 1
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment