@viclafouch/eslint-config-viclafouch 4.17.1-beta.5 → 4.17.1-beta.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viclafouch/eslint-config-viclafouch",
3
- "version": "4.17.1-beta.5",
3
+ "version": "4.17.1-beta.7",
4
4
  "description": "ESLint and Prettier Config from Victor de la Fouchardiere",
5
5
  "main": "index.js",
6
6
  "keywords": [
package/rules/react.mjs CHANGED
@@ -400,7 +400,7 @@ export default [
400
400
  },
401
401
  {
402
402
  // JSX in .tsx files instead of .jsx
403
- files: ['*.ts?(x)'],
403
+ files: ['**/*.{ts,tsx}'],
404
404
  rules: {
405
405
  'react/jsx-filename-extension': ['error', { extensions: ['.tsx'] }]
406
406
  }
package/rules/style.mjs CHANGED
@@ -9,14 +9,6 @@ export default {
9
9
  // https://eslint.org/docs/latest/rules/camelcase
10
10
  camelcase: 'error',
11
11
 
12
- // Enforce a maximum number of lines per file
13
- // https://eslint.org/docs/rules/max-lines
14
- 'max-lines': ['error', 350],
15
-
16
- // Enforce or disallow capitalization of the first letter of a comment
17
- // https://eslint.org/docs/rules/capitalized-comments
18
- 'capitalized-comments': ['error', 'always'],
19
-
20
12
  // "red" === color is a "Yoda" condition, prefer color === "red" instead
21
13
  // https://eslint.org/docs/latest/rules/yoda
22
14
  yoda: 'error',
@@ -16,8 +16,9 @@ export default tseslint.config(
16
16
  name: 'typescript',
17
17
  languageOptions: {
18
18
  parserOptions: {
19
- projectService: true,
20
- tsconfigRootDir: import.meta.dirname
19
+ projectService: {
20
+ allowDefaultProject: ['*.js', '*.mjs', '*.cjs']
21
+ }
21
22
  }
22
23
  },
23
24
  settings: {