@st1ggy/linter-config 1.0.64 → 1.0.66

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": "@st1ggy/linter-config",
3
- "version": "1.0.64",
3
+ "version": "1.0.66",
4
4
  "description": "ESLint, Stylelint and Prettier configs for React, Vue [WIP] and Svelte [WIP]",
5
5
  "private": false,
6
6
  "main": "index.js",
@@ -20,26 +20,25 @@
20
20
  },
21
21
  "homepage": "https://github.com/St1ggy/linter-config#readme",
22
22
  "peerDependencies": {
23
- "@eslint/js": "^9.0.0",
24
- "@types/eslint__js": "^8.42.0",
25
- "eslint": "^8.56.0",
26
- "eslint-config-next": "^14.1.0",
23
+ "@eslint/js": "^8.57.0",
24
+ "eslint": "^8.57.0",
25
+ "eslint-config-next": "^14.1.4",
27
26
  "eslint-config-prettier": "^9.1.0",
28
27
  "eslint-import-resolver-typescript": "^3.6.1",
29
28
  "eslint-plugin-import": "^2.29.1",
30
29
  "eslint-plugin-prettier": "^5.1.3",
31
- "eslint-plugin-react": "^7.33.2",
30
+ "eslint-plugin-react": "^7.34.1",
32
31
  "eslint-plugin-react-hooks": "^4.6.0",
33
- "eslint-plugin-sonarjs": "^0.24.0",
32
+ "eslint-plugin-sonarjs": "^1.0.3",
34
33
  "eslint-plugin-unicorn": "^51.0.1",
35
34
  "gently-copy": "^3.2.0",
36
35
  "prettier": "^3.2.5",
37
36
  "stylelint": "^16.2.1",
38
37
  "stylelint-config-recommended": "^14.0.0",
39
- "stylelint-config-sass-guidelines": "^11.0.0",
38
+ "stylelint-config-sass-guidelines": "^11.1.0",
40
39
  "stylelint-config-tailwindcss": "^0.0.7",
41
- "typescript": "^5.3.3",
42
- "typescript-eslint": "^7.1.0"
40
+ "typescript": "^5.4.3",
41
+ "typescript-eslint": "^7.3.1"
43
42
  },
44
43
  "type": "module"
45
44
  }
@@ -5,6 +5,7 @@ import react from './eslint.config.react.js'
5
5
  export default [
6
6
  ...react,
7
7
  {
8
+ files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'],
8
9
  plugins: {
9
10
  '@next/next': nextPlugin,
10
11
  },
@@ -3,6 +3,7 @@ import eslint from '@eslint/js'
3
3
  export default [
4
4
  eslint.configs.recommended,
5
5
  {
6
+ files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'],
6
7
  rules: {
7
8
  'no-console': 'warn',
8
9
  'no-debugger': 'warn',
@@ -2,6 +2,7 @@ import importPlugin from 'eslint-plugin-import'
2
2
 
3
3
  export default [
4
4
  {
5
+ files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'],
5
6
  plugins: { import: importPlugin },
6
7
  rules: {
7
8
  'import/newline-after-import': 'error',
@@ -4,6 +4,7 @@ import prettierPlugin from 'eslint-plugin-prettier'
4
4
  export default [
5
5
  prettierConfig,
6
6
  {
7
+ files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'],
7
8
  plugins: { prettier: prettierPlugin },
8
9
  rules: { 'prettier/prettier': 'error' },
9
10
  },
@@ -6,6 +6,7 @@ export default [
6
6
  reactRecommended,
7
7
  reactJsxRuntime,
8
8
  {
9
+ files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'],
9
10
  plugins: { 'react-hooks': reactHooksPlugin },
10
11
  rules: {
11
12
  'react/boolean-prop-naming': 'error',
@@ -1,5 +1,6 @@
1
1
  export default [
2
2
  {
3
+ files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'],
3
4
  languageOptions: {
4
5
  parserOptions: {
5
6
  project: ['tsconfig.json'],
@@ -3,6 +3,7 @@ import unicornPlugin from 'eslint-plugin-unicorn'
3
3
  export default [
4
4
  unicornPlugin.configs['flat/recommended'],
5
5
  {
6
+ files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'],
6
7
  rules: {
7
8
  'unicorn/consistent-destructuring': 'error',
8
9
  'unicorn/custom-error-definition': 'error',