@massimo-cassandro/eslint-config 2.0.8 → 3.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/README.md +28 -11
  2. package/package.json +6 -1
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 eslint @eslint/js globals @massimo-cassandro/eslint-config
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
- files: ['src/**/*.js'],
25
- ignores: [
26
- 'dist/',
27
- '**/vendor/'
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@massimo-cassandro/eslint-config",
3
- "version": "2.0.8",
3
+ "version": "3.0.0",
4
4
  "description": "my eslint config",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -29,5 +29,10 @@
29
29
  ],
30
30
  "devDependencies": {
31
31
  "@massimo-cassandro/dev-updater": "^1.0.5"
32
+ },
33
+ "dependencies": {
34
+ "@eslint/js": "^10.0.1",
35
+ "eslint": "^10.0.0",
36
+ "globals": "^17.3.0"
32
37
  }
33
38
  }