@wildpastry/eslint-config 1.7.0 → 1.7.2

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 (3) hide show
  1. package/README.md +16 -3
  2. package/index.js +0 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -30,9 +30,22 @@ npm i @wildpastry/eslint-config@latest
30
30
  .eslintrc
31
31
  ```
32
32
 
33
- ### Add config to .eslintrc and save
34
- ```
35
- { "extends": "@wildpastry/eslint-config" }
33
+ ### Add config to eslint.config.js and save
34
+ ```
35
+ import wildpastryConfig from '@wildpastry/eslint-config';
36
+
37
+ export default defineConfig([
38
+ {
39
+ files: ['**/*.{js,mjs,cjs,ts,jsx,tsx}'],
40
+ plugins: { js },
41
+ extends: ['js/recommended']
42
+ },
43
+ {
44
+ files: ['**/*.{js,mjs,cjs,ts,jsx,tsx}'],
45
+ languageOptions: { globals: globals.browser }
46
+ },
47
+ ...wildpastryConfig
48
+ ]);
36
49
  ```
37
50
 
38
51
  ### Add these optional scripts to package.json inside "scripts": { ... }
package/index.js CHANGED
@@ -1,4 +1,3 @@
1
- // eslint-config/index.js
2
1
  import pluginReact from 'eslint-plugin-react';
3
2
  import pluginPrettier from 'eslint-plugin-prettier';
4
3
  import pluginTS from '@typescript-eslint/eslint-plugin';
@@ -292,7 +291,6 @@ export default [
292
291
  "no-sparse-arrays": 1, // disallow sparse arrays // DONE
293
292
  "no-unreachable": 1, // disallow unreachable statements after a return, throw, continue, or break statement // DONE
294
293
  "use-isnan": 1, // disallow comparisons with the value NaN // DONE
295
- "valid-jsdoc": 1, // ensure JSDoc comments are valid // DONE
296
294
  "valid-typeof": 1, // ensure that the results of typeof are compared against a valid string // DONE
297
295
  "no-catch-shadow": 1, // disallow the catch clause parameter name being the same as a variable in the outer scope // DONE
298
296
  "no-unused-vars": 1, // disallow declaration of variables that are not used in the code // DONE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wildpastry/eslint-config",
3
- "version": "1.7.0",
3
+ "version": "1.7.2",
4
4
  "description": "ESLint configuration file",
5
5
  "main": "index.js",
6
6
  "scripts": {