@darajs/eslint-config 1.7.4 → 1.9.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/index.js +10 -40
  2. package/package.json +5 -8
package/index.js CHANGED
@@ -11,15 +11,15 @@ module.exports = {
11
11
  'plugin:@typescript-eslint/recommended',
12
12
  'plugin:@typescript-eslint/recommended-requiring-type-checking',
13
13
  'plugin:import/typescript',
14
- 'prettier/prettier',
15
- 'plugin:prettier/recommended',
14
+ // disables conflicting formatting rules but doesn't run prettier itself
15
+ 'prettier',
16
16
  ],
17
17
  parser: '@typescript-eslint/parser',
18
18
  parserOptions: {
19
19
  ecmaVersion: 'latest',
20
20
  sourceType: 'module',
21
21
  },
22
- plugins: ['react', '@typescript-eslint', 'react-hooks', 'typescript-sort-keys', 'sort-keys-fix'],
22
+ plugins: ['react', '@typescript-eslint', 'react-hooks'],
23
23
  rules: {
24
24
  '@typescript-eslint/explicit-function-return-type': [
25
25
  'error',
@@ -77,24 +77,9 @@ module.exports = {
77
77
  ],
78
78
 
79
79
  'import/no-named-default': 'off',
80
-
81
- // This sorts into groups
82
- 'import/order': [
83
- 'error',
84
- {
85
- alphabetize: { order: 'asc' },
86
- groups: [['builtin', 'external'], 'internal', ['parent', 'sibling', 'index']],
87
- 'newlines-between': 'always',
88
- pathGroups: [
89
- {
90
- group: 'internal',
91
- pattern: '@darajs/**',
92
- position: 'before',
93
- },
94
- ],
95
- },
96
- ],
97
80
  'import/prefer-default-export': 'off',
81
+ 'import/order': 'off',
82
+ 'sort-imports': 'off',
98
83
  'jsx-a11y/anchor-is-valid': ['error', { components: [] }],
99
84
  'no-continue': 'off',
100
85
  'no-inner-declarations': 'off',
@@ -133,18 +118,6 @@ module.exports = {
133
118
  'react/jsx-key': ['error', { checkFragmentShorthand: true }],
134
119
  'react/jsx-no-bind': 'off',
135
120
  'react/jsx-props-no-spreading': 'off',
136
- 'react/jsx-sort-props': [
137
- 'error',
138
- {
139
- // Sort props alphabetically
140
- callbacksLast: false,
141
- ignoreCase: false,
142
- noSortAlphabetically: false,
143
- reservedFirst: false,
144
- shorthandFirst: false,
145
- shorthandLast: false,
146
- },
147
- ],
148
121
  'react/jsx-uses-react': 'off',
149
122
  'react/no-array-index-key': 'off',
150
123
  'react/prop-types': 'off',
@@ -152,17 +125,14 @@ module.exports = {
152
125
  'react/require-default-props': 'off',
153
126
 
154
127
  'require-await': 'off',
155
- // This sorts within destructured imports
156
- 'sort-imports': [
157
- 'error',
128
+ /** Previously added by prettier plugin */
129
+ 'arrow-body-style': [
130
+ 'off',
131
+ 'as-needed',
158
132
  {
159
- allowSeparatedGroups: true,
160
- ignoreDeclarationSort: true,
133
+ requireReturnForObjectLiteral: false,
161
134
  },
162
135
  ],
163
- 'sort-keys-fix/sort-keys-fix': 'warn',
164
- 'typescript-sort-keys/interface': 'error',
165
- 'typescript-sort-keys/string-enum': 'error',
166
136
  },
167
137
  settings: {
168
138
  'import/internal-regex': '^@darajs/',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@darajs/eslint-config",
3
- "version": "1.7.4",
3
+ "version": "1.9.0",
4
4
  "description": "Dara ESLint configuration",
5
5
  "author": "Krzysztof Bielikowicz <krzysztof@causalens.com>",
6
6
  "license": "Apache-2.0",
@@ -10,26 +10,23 @@
10
10
  ],
11
11
  "prettier": "@darajs/prettier-config",
12
12
  "dependencies": {
13
- "@darajs/prettier-config": "^1.7.4",
13
+ "@darajs/prettier-config": "^1.9.0",
14
14
  "@typescript-eslint/eslint-plugin": "^6.0.0",
15
15
  "@typescript-eslint/parser": "^6.0.0",
16
16
  "eslint": "^7.5.0",
17
17
  "eslint-config-airbnb": "18.2.1",
18
- "eslint-config-prettier": "^8.3.0",
18
+ "eslint-config-prettier": "^9.0.0",
19
19
  "eslint-import-resolver-typescript": "^3.5",
20
20
  "eslint-plugin-import": "2.22.1",
21
21
  "eslint-plugin-jest": "^27.0.0",
22
22
  "eslint-plugin-jsx-a11y": "^6.4.1",
23
- "eslint-plugin-prettier": "^4.0.0",
24
23
  "eslint-plugin-react": "^7.21.5",
25
24
  "eslint-plugin-react-hooks": "^4.6.0",
26
- "eslint-plugin-sort-keys-fix": "^1.1.2",
27
- "eslint-plugin-typescript-sort-keys": "^2.0.0",
28
- "prettier": "2.4.1",
25
+ "prettier": "^3.0.0",
29
26
  "typescript": "^5.0.4"
30
27
  },
31
28
  "publishConfig": {
32
29
  "access": "public"
33
30
  },
34
- "gitHead": "387e9545c5fd81cc7f303390c8a5346b429d32b0"
31
+ "gitHead": "85167f21b10483a26825534a74858011787a3afe"
35
32
  }