@fullstacksjs/eslint-config 10.4.0 → 10.5.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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <div align="center">
2
2
 
3
- ![logo][logo]
3
+ ![logo](https://raw.githubusercontent.com/fullstacksjs/eslint-config/master/assets/banner.png)
4
4
 
5
5
  <br/>
6
6
 
@@ -36,6 +36,7 @@ module.exports = init({
36
36
  ```
37
37
 
38
38
  ### Method 2: Extends API
39
+
39
40
  You can also use the configuration within a `json` or `yaml` files by extending from `@fullstacksjs`, the Auto Module Detection is enabled on this method
40
41
 
41
42
  ```json
@@ -53,7 +54,8 @@ When auto module detection is turned on, the configuration reads the metadata fr
53
54
  ```typescript
54
55
  interface Modules {
55
56
  auto?: boolean; // Auto module detection
56
- react?: 'next' | 'raw'; // controls react, react-hooks, jsx/a11y plugins
57
+ react?: boolean; // controls react, react-hooks, jsx/a11y plugins
58
+ cspell?: boolean; // controls cspell plugin
57
59
  typescript?: { // controls typescript plugin
58
60
  parserProject?: string[] | string; // controls parserOptions.project
59
61
  resolverProject?: string[] | string // controls settings['import/resolver'].typescript.project
@@ -78,7 +80,10 @@ If you need more advanced typescript-eslint rule you need to specify `modules.ty
78
80
  ```js
79
81
  module.exports = init({
80
82
  modules: {
81
- typescript: { resolverProject: "<PATH_TO_TSCONFIG>" }
83
+ typescript: {
84
+ parserProject: "<PATH_TO_TSCONFIG>", // parserOptions.project
85
+ resolverProject: "<PATH_TO_TSCONFIG>", // settings['import/resolver']
86
+ },
82
87
  },
83
88
  });
84
89
  ```
@@ -172,7 +177,6 @@ v9 does not have any breaking change, which means the current configuration you
172
177
 
173
178
  That's all. Feel free to use 💛
174
179
 
175
- [logo]: https://raw.githubusercontent.com/fullstacksjs/eslint-config/master/assets/logo.png
176
180
  [download-badge]: https://img.shields.io/npm/dm/@fullstacksjs/eslint-config?color=6464E2&label=DOWNLOADS&style=flat-square
177
181
  [version-badge]: https://img.shields.io/npm/v/@fullstacksjs/eslint-config?color=6464E2&label=VERSION&style=flat-square
178
182
  [license-badge]: https://img.shields.io/npm/l/@fullstacksjs/eslint-config?color=6464E2&label=LICENSE&style=flat-square
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fullstacksjs/eslint-config",
3
- "version": "10.4.0",
3
+ "version": "10.5.0",
4
4
  "license": "MIT",
5
5
  "author": "fullstacks <fullstacksjs@gmail.com>",
6
6
  "description": "fullstacks eslint config",
package/tailwind.js CHANGED
@@ -9,7 +9,7 @@ module.exports = {
9
9
  'tailwindcss/enforces-shorthand': 'warn',
10
10
  'tailwindcss/migration-from-tailwind-2': 'warn',
11
11
  'tailwindcss/no-arbitrary-value': 'off',
12
- 'tailwindcss/no-custom-classname': 'off',
12
+ 'tailwindcss/no-custom-classname': 'warn',
13
13
  'tailwindcss/no-contradicting-classname': 'error',
14
14
  },
15
15
  };
package/typescript.js CHANGED
@@ -51,8 +51,7 @@ module.exports = {
51
51
  '@typescript-eslint/member-naming': 'off',
52
52
  '@typescript-eslint/member-ordering': 'off',
53
53
  '@typescript-eslint/method-signature-style': ['warn', 'property'],
54
- // FIXME: Needs typechecking !!!
55
- // '@typescript-eslint/naming-convention': ['warn', ...require('./naming-convention')],
54
+ '@typescript-eslint/naming-convention': ['warn', ...require('./naming-convention')],
56
55
  '@typescript-eslint/no-array-constructor': 'error',
57
56
  '@typescript-eslint/no-base-to-string': 'off', // false negative
58
57
  '@typescript-eslint/no-confusing-non-null-assertion': 'error',