[READ-ONLY] Mirror of https://github.com/lion-byte/eslint-config. ESLint config for personal projects
eslint-config personal-config
0

Configure Feed

Select the types of activity you want to include in your feed.

feat: add `@typescript-eslint/recommended` rules

- Disable "@typescript-eslint/no-var-requires" in JS files
- Disable `import/no-unresolved` since TypeScript would ideally handle
that issue

Mark Hernandez (Dec 14, 2021, 8:54 PM -0600) 6d338241 920439a6

+22
+10
.eslintrc.json
··· 17 17 "plugin:react/recommended", 18 18 "plugin:react/jsx-runtime", 19 19 "plugin:react-hooks/recommended", 20 + "plugin:@typescript-eslint/recommended", 20 21 "prettier" 21 22 ], 22 23 "plugins": [ ··· 60 61 "import/newline-after-import": "error", 61 62 "import/no-dynamic-require": "error", 62 63 "import/no-mutable-exports": "error", 64 + "import/no-unresolved": "off", 63 65 "import/order": [ 64 66 "error", 65 67 { ··· 78 80 "jsx-a11y/no-onchange": "off", 79 81 "react/self-closing-comp": "error" 80 82 }, 83 + "overrides": [ 84 + { 85 + "files": ["*.js"], 86 + "rules": { 87 + "@typescript-eslint/no-var-requires": "off" 88 + } 89 + } 90 + ], 81 91 "settings": { "react": { "version": "latest" } } 82 92 }
+12
test/__snapshots__/index.test.js.snap
··· 20 20 "plugin:react/recommended", 21 21 "plugin:react/jsx-runtime", 22 22 "plugin:react-hooks/recommended", 23 + "plugin:@typescript-eslint/recommended", 23 24 "prettier", 25 + ], 26 + "overrides": Array [ 27 + Object { 28 + "files": Array [ 29 + "*.js", 30 + ], 31 + "rules": Object { 32 + "@typescript-eslint/no-var-requires": "off", 33 + }, 34 + }, 24 35 ], 25 36 "parser": "@typescript-eslint/parser", 26 37 "parserOptions": Object { ··· 43 54 "import/newline-after-import": "error", 44 55 "import/no-dynamic-require": "error", 45 56 "import/no-mutable-exports": "error", 57 + "import/no-unresolved": "off", 46 58 "import/order": Array [ 47 59 "error", 48 60 Object {