@massimo-cassandro/eslint-config 2.0.8 → 3.0.1
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 +28 -11
- package/package.json +8 -2
package/README.md
CHANGED
|
@@ -2,15 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
My [eslint](https://eslint.org/) config,
|
|
4
4
|
|
|
5
|
-
Previous versions at <https://github.com/massimo-cassandro/linters-config>.
|
|
6
|
-
|
|
7
5
|
|
|
8
6
|
## Use
|
|
9
7
|
|
|
10
8
|
Install `eslint` and all the needed packages:
|
|
11
9
|
|
|
12
10
|
```bash
|
|
13
|
-
npm i -D
|
|
11
|
+
npm i -D @massimo-cassandro/eslint-config
|
|
14
12
|
```
|
|
15
13
|
|
|
16
14
|
Create a `eslint.config.js` file (or use any other name and syntax you like, following the instructions at <https://eslint.org/docs/latest/use/configure/configuration-files>) and add:
|
|
@@ -18,15 +16,34 @@ Create a `eslint.config.js` file (or use any other name and syntax you like, fol
|
|
|
18
16
|
```javascript
|
|
19
17
|
import eslint_config from '@massimo-cassandro/eslint-config';
|
|
20
18
|
|
|
19
|
+
// OPTIONAL
|
|
20
|
+
// https://github.com/cybozu/eslint-config
|
|
21
|
+
// import cybozuEslintConfigBaseline from '@cybozu/eslint-config/flat/presets/css-baseline.js';
|
|
22
|
+
|
|
23
|
+
|
|
21
24
|
export default [
|
|
25
|
+
|
|
26
|
+
// ...cybozuEslintConfigBaseline.map((config) => ({
|
|
27
|
+
// ...config,
|
|
28
|
+
// files: ['**/*.css']
|
|
29
|
+
// })),
|
|
30
|
+
|
|
22
31
|
...eslint_config,
|
|
23
|
-
{
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
32
|
+
// {
|
|
33
|
+
// files: ['src/**/*.js'],
|
|
34
|
+
// ignores: [
|
|
35
|
+
// 'dist/',
|
|
36
|
+
// 'build/',
|
|
37
|
+
// '**/vendor/'
|
|
38
|
+
// ],
|
|
39
|
+
// }
|
|
40
|
+
// {
|
|
41
|
+
// languageOptions: {
|
|
42
|
+
// globals: {
|
|
43
|
+
// jQuery: 'readonly',
|
|
44
|
+
// $: 'readonly',
|
|
45
|
+
// },
|
|
46
|
+
// },
|
|
47
|
+
// },
|
|
30
48
|
];
|
|
31
49
|
```
|
|
32
|
-
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@massimo-cassandro/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "my eslint config",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"UPD-version": "npx update-version",
|
|
9
|
+
"upd@m": "npx upd@m",
|
|
9
10
|
"npm-publish": "npm publish"
|
|
10
11
|
},
|
|
11
12
|
"publishConfig": {
|
|
@@ -28,6 +29,11 @@
|
|
|
28
29
|
"index.js"
|
|
29
30
|
],
|
|
30
31
|
"devDependencies": {
|
|
31
|
-
"@massimo-cassandro/dev-updater": "^
|
|
32
|
+
"@massimo-cassandro/dev-updater": "^3.0.2"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@eslint/js": "^10.0.1",
|
|
36
|
+
"eslint": "^10.0.1",
|
|
37
|
+
"globals": "^17.3.0"
|
|
32
38
|
}
|
|
33
39
|
}
|