Skip to content

Instantly share code, notes, and snippets.

@rootVIII
Created November 30, 2022 23:03
Show Gist options
  • Save rootVIII/b69cacf068855427eadad4ed82824193 to your computer and use it in GitHub Desktop.
Save rootVIII/b69cacf068855427eadad4ed82824193 to your computer and use it in GitHub Desktop.
Javascript my eslint
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: 'airbnb-base',
overrides: [
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {
indent: ['error', 4],
'no-multi-assign': ['error', { ignoreNonDeclaration: true }],
'no-plusplus': 'off',
'func-names': ['error', 'never'],
'no-multiple-empty-lines': 'error',
'space-before-function-paren': ['error', 'never'],
'no-console': 'off',
'no-empty': 'off',
'import/prefer-default-export': 'off',
'no-var': 0,
'no-useless-escape': 0,
'no-cond-assign': 0,
'prefer-const': 0,
'no-bitwise': 0,
'no-param-reassign': 0,
'no-restricted-syntax': 0,
'no-restricted-globals': 0,
'no-continue': 0,
'prefer-destructuring': 0,
'max-classes-per-file': 0,
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment