@tata-v/eslint-config-nextjs 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +69 -0
  2. package/package.json +23 -0
package/index.js ADDED
@@ -0,0 +1,69 @@
1
+ module.exports = {
2
+ env: { browser: true, es2020: true, node: true },
3
+ extends: [
4
+ 'airbnb',
5
+ 'airbnb-typescript',
6
+ 'eslint:recommended',
7
+ 'plugin:import/errors',
8
+ 'plugin:import/warnings'
9
+ ],
10
+ parser: '@typescript-eslint/parser',
11
+ plugins: ['@typescript-eslint/eslint-plugin'],
12
+ rules: {
13
+ 'no-var': 'warn',
14
+ 'eqeqeq': 'warn',
15
+ 'react/prop-types': 0,
16
+ 'no-extra-semi': 'error',
17
+ 'react/jsx-filename-extension': [2, { extensions: ['.js', '.jsx', '.ts', '.tsx'] }],
18
+ 'no-unused-vars': 'off',
19
+ 'import/prefer-default-export': 'off',
20
+ 'react-hooks/exhaustive-deps': 'off',
21
+ 'react/jsx-pascal-case': 'warn',
22
+ 'react/jsx-key': 'warn',
23
+ 'no-debugger': 'off',
24
+ 'react/function-component-definition': [2, { namedComponents: ['arrow-function', 'function-declaration'] }],
25
+ 'react/react-in-jsx-scope': 0,
26
+ 'react/prefer-stateless-function': 0,
27
+ 'react/jsx-one-expression-per-line': 0,
28
+ 'no-nested-ternary': 0,
29
+ 'import/no-unresolved': 'off',
30
+ 'react/jsx-props-no-spreading': 'off',
31
+ 'linebreak-style': 0,
32
+ 'import/extensions': 'off',
33
+ 'no-use-before-define': 0,
34
+ 'import/no-extraneous-dependencies': 0,
35
+ 'no-shadow': 0,
36
+ 'jsx-a11y/no-noninteractive-element-interactions': 0,
37
+ 'quotes': ['error', 'single'],
38
+ 'indent': ['error', 2, { SwitchCase: 1 }],
39
+ 'arrow-parens': ['error', 'always'],
40
+ 'no-console': 'warn',
41
+ 'react/button-has-type': 'off',
42
+ 'no-alert': 'off',
43
+ 'max-len': 'off',
44
+ 'jsx-a11y/click-events-have-key-events': 'off',
45
+ 'jsx-a11y/no-static-element-interactions': 'off',
46
+ '@typescript-eslint/no-unused-vars': 'off',
47
+ 'react/destructuring-assignment': 'off',
48
+ 'react/no-array-index-key': 'off',
49
+ 'no-param-reassign': 'off',
50
+ 'no-undef': 'off',
51
+ '@typescript-eslint/no-explicit-any': 'off',
52
+ 'object-curly-newline': 'off',
53
+ 'semi': ['error', 'always'],
54
+ 'react/jsx-no-useless-fragment': 'off',
55
+ 'react/no-unused-prop-types': 'warn',
56
+ 'jsx-a11y/control-has-associated-label': 'off',
57
+ 'react/require-default-props': 'off',
58
+ 'consistent-return': 'off',
59
+ '@typescript-eslint/no-var-requires': 'off',
60
+ 'import/order': 'off',
61
+ 'no-tabs': 'off',
62
+ 'camelcase': 'off',
63
+ 'dot-notation': 'off',
64
+ 'no-redeclare:': 'off',
65
+ 'prefer-destructuring': 'off',
66
+ 'no-unsafe-optional-chaining': 'off',
67
+ 'jsx-a11y/label-has-associated-control': 'off'
68
+ }
69
+ }
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@tata-v/eslint-config-nextjs",
3
+ "version": "1.0.0",
4
+ "main": "index.js",
5
+ "keywords": [],
6
+ "author": {
7
+ "name": "tata-v",
8
+ "email": "tatahyeonv@gmail.com"
9
+ },
10
+ "license": "ISC",
11
+ "publishConfig": {
12
+ "access": "public",
13
+ "registry": "https://registry.npmjs.org/"
14
+ },
15
+ "devDependencies": {
16
+ "@typescript-eslint/eslint-plugin": "^7.8.0",
17
+ "@typescript-eslint/parser": "^7.8.0",
18
+ "eslint-config-airbnb": "^19.0.4",
19
+ "eslint-config-airbnb-typescript": "^18.0.0",
20
+ "eslint-plugin-import": "^2.29.1",
21
+ "eslint-plugin-jsx-a11y": "^6.8.0"
22
+ }
23
+ }