@mkappelhof/eslint-config-base 1.0.3 → 1.0.4
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/.turbo/turbo-build.log +4 -0
- package/CHANGELOG.md +8 -0
- package/README.md +7 -0
- package/dist/.eslintrc.yml +42 -0
- package/dist/CHANGELOG.md +9 -0
- package/dist/index.js +3 -0
- package/dist/package.json +24 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Base ESLint configuration
|
|
2
|
+
|
|
3
|
+
Base ESLint configuration to extend from in other, more specified configurations. This package is not intended to be used in a client.
|
|
4
|
+
|
|
5
|
+
- For Next.js projects use [@mkappelhof/eslint-config-next](https://www.npmjs.com/package/@mkappelhof/eslint-config-next)
|
|
6
|
+
- For Node.js projects use [@mkappelhof/eslint-config-node](https://www.npmjs.com/package/@mkappelhof/eslint-config-node)
|
|
7
|
+
- For React projects use [@mkappelhof/eslint-config-react](https://www.npmjs.com/package/@mkappelhof/eslint-config-react)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
env:
|
|
2
|
+
browser: true
|
|
3
|
+
es2021: true
|
|
4
|
+
extends:
|
|
5
|
+
- eslint:recommended
|
|
6
|
+
- plugin:@typescript-eslint/recommended
|
|
7
|
+
- prettier
|
|
8
|
+
plugins:
|
|
9
|
+
- simple-import-sort
|
|
10
|
+
- '@typescript-eslint'
|
|
11
|
+
overrides: []
|
|
12
|
+
parser: '@typescript-eslint/parser'
|
|
13
|
+
parserOptions:
|
|
14
|
+
project:
|
|
15
|
+
- tsconfig.json
|
|
16
|
+
rules:
|
|
17
|
+
arrow-body-style:
|
|
18
|
+
- error
|
|
19
|
+
- as-needed
|
|
20
|
+
no-console: error
|
|
21
|
+
no-unused-vars: 'off'
|
|
22
|
+
import/prefer-default-export: 'off'
|
|
23
|
+
'@typescript-eslint/consistent-type-imports': error
|
|
24
|
+
'@typescript-eslint/no-explicit-any': error
|
|
25
|
+
'@typescript-eslint/no-unused-vars':
|
|
26
|
+
- error
|
|
27
|
+
- argsIgnorePattern: '^_'
|
|
28
|
+
varsIgnorePattern: '^_'
|
|
29
|
+
caughtErrorsIgnorePattern: '^_'
|
|
30
|
+
simple-import-sort/imports:
|
|
31
|
+
- error
|
|
32
|
+
- groups:
|
|
33
|
+
- - '^react'
|
|
34
|
+
- "^@?\\w"
|
|
35
|
+
- - '^(components|modules|utils)(/.*|$)'
|
|
36
|
+
- - "^\\u0000"
|
|
37
|
+
- - "^\\.\\.(?!/?$)"
|
|
38
|
+
- "^\\.\\./?$"
|
|
39
|
+
- - "^\\./(?=.*/)(?!/?$)"
|
|
40
|
+
- "^\\.(?!/?$)"
|
|
41
|
+
- "^\\./?$"
|
|
42
|
+
- - "^.+\\.?(css)$"
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mkappelhof/eslint-config-base",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"main": "index.js",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "git@github.com:mkappelhof/frontend-tools.git",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "rollup -c",
|
|
9
|
+
"test": "yaml-validator .eslintrc.yml"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@mkappelhof/prettier-config": "*",
|
|
13
|
+
"@typescript-eslint/eslint-plugin": "6.3.0",
|
|
14
|
+
"@typescript-eslint/parser": "6.3.0",
|
|
15
|
+
"eslint-config-prettier": "9.0.0",
|
|
16
|
+
"eslint-plugin-prettier": "5.0.0",
|
|
17
|
+
"eslint-plugin-simple-import-sort": "10.0.0",
|
|
18
|
+
"yaml-validator": "5.1.0"
|
|
19
|
+
},
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"eslint": "8.46.0",
|
|
22
|
+
"typescript": "5.1.6"
|
|
23
|
+
}
|
|
24
|
+
}
|