@dr.pogodin/eslint-configs 0.0.3 → 0.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/README.md +22 -5
- package/config/typescript.js +1 -0
- package/package.json +10 -12
package/README.md
CHANGED
|
@@ -28,13 +28,30 @@ This project is invisioned as a replacement for AirBnB ESLint configurations
|
|
|
28
28
|
## Getting Started
|
|
29
29
|
[Getting Started]: #getting-started
|
|
30
30
|
|
|
31
|
-
- We assume that [Babel] is properly installed and configured in the host
|
|
32
|
-
project — some plugins we enable depend on that, and as of now we do not
|
|
33
|
-
provide options to optionally disable them for non-[Babel] host projects.
|
|
34
|
-
|
|
35
31
|
- Install this package and ESLint as developement dependencies:
|
|
36
32
|
```sh
|
|
37
|
-
npm install --save-dev
|
|
33
|
+
npm install --save-dev @dr.pogodin/eslint-configs
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
- Some plugins & rules we use depend on [Babel]. If you don't have it explicitly
|
|
37
|
+
installed and configured in your project you should set `requireConfigFile`
|
|
38
|
+
option of parser to `false`, _e.g._:
|
|
39
|
+
```js
|
|
40
|
+
// eslint.config.mjs
|
|
41
|
+
|
|
42
|
+
import { defineConfig } from 'eslint/config';
|
|
43
|
+
import eslintConfigs from '@dr.pogodin/eslint-configs';
|
|
44
|
+
|
|
45
|
+
export default defineConfig([
|
|
46
|
+
{
|
|
47
|
+
languageOptions: {
|
|
48
|
+
parserOptions: {
|
|
49
|
+
requireConfigFile: false,
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
eslintConfigs.config.javascript,
|
|
54
|
+
]);
|
|
38
55
|
```
|
|
39
56
|
|
|
40
57
|
- Add necessary configurations into your flat ESLint config file, for example
|
package/config/typescript.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dr.pogodin/eslint-configs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "ESLint configurations for TypeScript and/or React projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./config/index.js",
|
|
@@ -29,23 +29,21 @@
|
|
|
29
29
|
},
|
|
30
30
|
"homepage": "https://dr.pogodin.studio/docs/eslint-configs",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@babel/eslint-parser": "^7.
|
|
33
|
-
"@babel/eslint-plugin": "^7.
|
|
34
|
-
"@babel/preset-env": "^7.
|
|
35
|
-
"@babel/preset-react": "^7.
|
|
36
|
-
"@babel/preset-typescript": "^7.
|
|
37
|
-
"@eslint/js": "^9.
|
|
32
|
+
"@babel/eslint-parser": "^7.27.1",
|
|
33
|
+
"@babel/eslint-plugin": "^7.27.1",
|
|
34
|
+
"@babel/preset-env": "^7.27.1",
|
|
35
|
+
"@babel/preset-react": "^7.27.1",
|
|
36
|
+
"@babel/preset-typescript": "^7.27.1",
|
|
37
|
+
"@eslint/js": "^9.26.0",
|
|
38
38
|
"@stylistic/eslint-plugin": "^4.1.0",
|
|
39
|
-
"eslint
|
|
39
|
+
"eslint": "^9.26.0",
|
|
40
|
+
"eslint-import-resolver-typescript": "^4.3.4",
|
|
40
41
|
"eslint-plugin-import": "^2.31.0",
|
|
41
42
|
"eslint-plugin-jest": "^28.11.0",
|
|
42
43
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
43
44
|
"eslint-plugin-react": "^7.37.4",
|
|
44
45
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
45
46
|
"typescript": "^5.7.0",
|
|
46
|
-
"typescript-eslint": "^8.
|
|
47
|
-
},
|
|
48
|
-
"peerDependencies": {
|
|
49
|
-
"eslint": "9"
|
|
47
|
+
"typescript-eslint": "^8.31.1"
|
|
50
48
|
}
|
|
51
49
|
}
|