Skip to content

Instantly share code, notes, and snippets.

@DaviGn
Last active December 31, 2022 19:44
Show Gist options
  • Save DaviGn/bb4b769ed91595151d921e541f0cc988 to your computer and use it in GitHub Desktop.
Save DaviGn/bb4b769ed91595151d921e541f0cc988 to your computer and use it in GitHub Desktop.
ESLint Node settings
{
"env": {
"browser": true,
"es6": true,
"node": true,
"jest": true
},
"extends": [
"airbnb-base",
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-shadow": ["error"],
"@typescript-eslint/no-use-before-define": ["error"],
"camelcase": "off",
"class-methods-use-this": "off",
"comma-dangle": "off",
"import/extensions": "off",
"import/no-duplicates": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true,
"optionalDependencies": false,
"peerDependencies": false
}
],
"import/newline-after-import": "off",
"import/no-unresolved": "off",
"import/order": "off",
"import/prefer-default-export": "off",
"indent": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/no-static-element-interactions": "off",
"linebreak-style": "off",
"lines-between-class-members": "off",
"no-await-in-loop": "off",
"no-bitwise": "off",
"no-console": "warn",
"no-empty": "off",
"no-nested-ternary": "off",
"no-param-reassign": "off",
"no-promise-executor-return": "off",
"no-plusplus": "off",
"no-return-await": "off",
"no-shadow": "off",
"no-underscore-dangle": "off",
"no-unsafe-optional-chaining": "off",
"no-useless-constructor": "off",
"no-unused-expressions": "off",
"no-use-before-define": "off",
"no-var": "off",
"object-curly-spacing": [
"error",
"always",
{
"arraysInObjects": true
}
],
"object-shorthand": "warn",
"prettier/prettier": 0,
"vars-on-top": "off"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment