@repodog/eslint-config 1.1.8 → 1.1.10

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.
package/README.md CHANGED
@@ -16,7 +16,7 @@ npm install @repodog/eslint-config --save-dev
16
16
 
17
17
  ```shell
18
18
  # terminal
19
- npm install @babel/eslint-parser @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-config-prettier eslint-import-resolver-typescript eslint-plugin-import eslint-plugin-jest eslint-plugin-jsx-a11y eslint-plugin-playwright eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-sort-class-members eslint-plugin-sort-destructure-keys eslint-plugin-sort-keys-fix eslint-plugin-typescript-sort-keys eslint-plugin-unicorn --save-dev
19
+ npm install @babel/eslint-parser @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-config-prettier eslint-import-resolver-typescript eslint-plugin-import eslint-plugin-prettier eslint-plugin-sort-class-members eslint-plugin-sort-destructure-keys eslint-plugin-sort-keys-fix eslint-plugin-typescript-sort-keys eslint-plugin-unicorn --save-dev
20
20
  ```
21
21
 
22
22
  ## Use package
@@ -31,41 +31,3 @@ module.exports = {
31
31
  root: true,
32
32
  };
33
33
  ```
34
-
35
- ### With Jest
36
-
37
- ```javascript
38
- // .eslintrc.cjs
39
- module.exports = {
40
- extends: ['@repodog/eslint-config'],
41
- overrides: [
42
- {
43
- extends: ['@repodog/eslint-config/jest.cjs'],
44
- files: ['**/*.{spec,test}.*'],
45
- },
46
- ],
47
- parserOptions: {
48
- tsconfigRootDir: __dirname,
49
- },
50
- root: true,
51
- };
52
- ```
53
-
54
- ### With Playwright
55
-
56
- ```javascript
57
- // .eslintrc.cjs
58
- module.exports = {
59
- extends: ['@repodog/eslint-config'],
60
- overrides: [
61
- {
62
- extends: ['@repodog/eslint-config/playwright.cjs'],
63
- files: ['**/*.{spec,test}.*'],
64
- },
65
- ],
66
- parserOptions: {
67
- tsconfigRootDir: __dirname,
68
- },
69
- root: true,
70
- };
71
- ```
package/index.cjs CHANGED
@@ -3,14 +3,7 @@ module.exports = {
3
3
  browser: true,
4
4
  node: true,
5
5
  },
6
- extends: [
7
- 'eslint:recommended',
8
- 'plugin:import/recommended',
9
- 'plugin:jsx-a11y/recommended',
10
- 'plugin:react/recommended',
11
- 'plugin:unicorn/recommended',
12
- 'prettier',
13
- ],
6
+ extends: ['eslint:recommended', 'plugin:import/recommended', 'plugin:unicorn/recommended', 'prettier'],
14
7
  overrides: [
15
8
  {
16
9
  extends: [
@@ -94,22 +87,7 @@ module.exports = {
94
87
  },
95
88
  ],
96
89
  parser: '@babel/eslint-parser',
97
- parserOptions: {
98
- ecmaFeatures: {
99
- jsx: true,
100
- },
101
- },
102
- plugins: [
103
- 'import',
104
- 'jsx-a11y',
105
- 'react',
106
- 'react-hooks',
107
- 'sort-class-members',
108
- 'sort-destructure-keys',
109
- 'sort-keys-fix',
110
- 'unicorn',
111
- 'prettier',
112
- ],
90
+ plugins: ['import', 'sort-class-members', 'sort-destructure-keys', 'sort-keys-fix', 'unicorn', 'prettier'],
113
91
  rules: {
114
92
  'import/extensions': [2, 'ignorePackages'],
115
93
  'import/namespace': 0,
@@ -181,32 +159,6 @@ module.exports = {
181
159
  { blankLine: 'always', next: '*', prev: 'break' },
182
160
  ],
183
161
  'prettier/prettier': 2,
184
- 'react/jsx-filename-extension': [2, { extensions: ['.jsx', '.tsx'] }],
185
- 'react/jsx-sort-props': [
186
- 2,
187
- {
188
- callbacksLast: false,
189
- ignoreCase: false,
190
- noSortAlphabetically: false,
191
- reservedFirst: false,
192
- shorthandFirst: false,
193
- shorthandLast: false,
194
- },
195
- ],
196
- 'react/jsx-wrap-multilines': [
197
- 2,
198
- {
199
- arrow: 'parens-new-line',
200
- assignment: 'parens-new-line',
201
- condition: 'parens-new-line',
202
- declaration: 'parens-new-line',
203
- logical: 'parens-new-line',
204
- prop: 'ignore',
205
- return: 'parens-new-line',
206
- },
207
- ],
208
- 'react-hooks/exhaustive-deps': 2,
209
- 'react-hooks/rules-of-hooks': 2,
210
162
  'sort-class-members/sort-class-members': [
211
163
  2,
212
164
  {
@@ -272,6 +224,8 @@ module.exports = {
272
224
  /.*args.*/i,
273
225
  /.*db.*/i,
274
226
  /.*dev.*/i,
227
+ /.*dir.*/i,
228
+ /.*env.*/i,
275
229
  /.*params.*/i,
276
230
  /.*obj.*/i,
277
231
  /.*prop.*/i,
@@ -280,9 +234,4 @@ module.exports = {
280
234
  },
281
235
  ],
282
236
  },
283
- settings: {
284
- react: {
285
- version: '18',
286
- },
287
- },
288
237
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@repodog/eslint-config",
3
3
  "description": "The RepoDog ESLint config module.",
4
- "version": "1.1.8",
4
+ "version": "1.1.10",
5
5
  "author": "Dylan Aubrey",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/badbatch/repodog",
@@ -23,12 +23,7 @@
23
23
  "eslint-config-prettier": "<9",
24
24
  "eslint-import-resolver-typescript": "<4",
25
25
  "eslint-plugin-import": "<3",
26
- "eslint-plugin-jest": "<28",
27
- "eslint-plugin-jsx-a11y": "<7",
28
- "eslint-plugin-playwright": "<1",
29
26
  "eslint-plugin-prettier": "<5",
30
- "eslint-plugin-react": "<8",
31
- "eslint-plugin-react-hooks": "<5",
32
27
  "eslint-plugin-sort-class-members": "<2",
33
28
  "eslint-plugin-sort-destructure-keys": "<2",
34
29
  "eslint-plugin-sort-keys-fix": "<2",
package/jest.cjs DELETED
@@ -1,39 +0,0 @@
1
- module.exports = {
2
- env: {
3
- 'jest/globals': true,
4
- },
5
- extends: ['plugin:jest/recommended', 'plugin:jest/style'],
6
- plugins: ['jest'],
7
- rules: {
8
- 'jest/consistent-test-it': [
9
- 2,
10
- {
11
- fn: 'it',
12
- withinDescribe: 'it',
13
- },
14
- ],
15
- 'jest/max-expects': [
16
- 2,
17
- {
18
- max: 1,
19
- },
20
- ],
21
- 'jest/max-nested-describe': [
22
- 2,
23
- {
24
- max: 5,
25
- },
26
- ],
27
- 'jest/no-conditional-in-test': 2,
28
- 'jest/no-duplicate-hooks': 2,
29
- 'jest/no-test-return-statement': 2,
30
- 'jest/prefer-called-with': 2,
31
- 'jest/prefer-comparison-matcher': 2,
32
- 'jest/prefer-each': 2,
33
- 'jest/prefer-equality-matcher': 2,
34
- 'jest/prefer-expect-resolves': 2,
35
- 'jest/prefer-hooks-in-order': 2,
36
- 'jest/prefer-hooks-on-top': 2,
37
- 'jest/prefer-todo': 2,
38
- },
39
- };
package/playwright.cjs DELETED
@@ -1,5 +0,0 @@
1
- module.exports = {
2
- extends: ['plugin:playwright/recommended'],
3
- plugins: ['playwright'],
4
- rules: {},
5
- };