Skip to content

Instantly share code, notes, and snippets.

@NazCodeland
Last active September 14, 2024 04:05
Show Gist options
  • Save NazCodeland/31ee981a69f31099cfbab312403f1fcc to your computer and use it in GitHub Desktop.
Save NazCodeland/31ee981a69f31099cfbab312403f1fcc to your computer and use it in GitHub Desktop.
eslint-airbnb-config-rules-Chase
// .eslintrc.js
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
extends: [
'airbnb', // Airbnb base configuration
'airbnb/hooks', // Airbnb hooks configuration (for React Hooks)
'plugin:@typescript-eslint/recommended', // TypeScript recommended rules
'eslint:recommended', // ESLint's recommended rules
],
rules: {
// Add or override rules here
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-unsafe-function-type': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'arrow-body-style': 'off',
camelcase: 'off',
'consistent-return': 'off',
'default-param-last': 'off',
'func-names': 'off',
'generator-star-spacing': 'off',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'import/prefer-default-export': 'off',
'lines-between-class-members': 'off',
'max-classes-per-file': 'off',
'max-len': 'off',
'no-await-in-loop': 'off',
'no-bitwise': 'off',
'no-continue': 'off',
'no-empty-function': 'off',
'no-empty': 'off',
'no-lonely-if': 'off',
'no-param-reassign': 'off',
'no-plusplus': 'off',
'no-prototype-builtins': 'off',
'no-redeclare': 'off',
'no-restricted-syntax': 'off',
'no-return-await': 'off', // deprecated
'no-shadow': 'off',
'no-undef': 'off',
'no-unneeded-ternary': 'off',
'no-unused-vars': 'off',
'no-use-before-define': 'off',
'no-useless-constructor': 'off',
'no-useless-return': 'off',
'no-void': 'off',
'object-curly-newline': 'off',
'space-before-function-paren': 'off',
'space-in-parens': 'off',
'wrap-iife': 'off',
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment