.eslintrc.cjs (962B)
1 /* eslint-env node */ 2 module.exports = { 3 extends: [ 4 "eslint:recommended", 5 "plugin:@typescript-eslint/recommended", 6 "plugin:react/recommended", 7 "plugin:storybook/recommended" 8 ], 9 parser: '@typescript-eslint/parser', 10 plugins: ['@typescript-eslint'], 11 root: true, 12 parserOptions: { 13 ecmaVersion: 2022, 14 sourceType: 'module', 15 ecmaFeatures: { 16 jsx: true, 17 }, 18 }, 19 settings: { 20 react: { 21 version: 'detect', 22 }, 23 }, 24 rules: { 25 "react/react-in-jsx-scope": "off", 26 // False positives 27 "@typescript-eslint/no-explicit-any": "off", 28 "react/display-name": "off", 29 "@typescript-eslint/ban-ts-comment": "off", 30 "@typescript-eslint/no-non-null-assertion": "off", 31 "@typescript-eslint/no-empty-interface": "off", 32 // Annoyances 33 "@typescript-eslint/no-inferrable-types": "off" 34 } 35 };