Skip to content

Commit 5b472c2

Browse files
committed
Recover some lost rules by adding stylistic
1 parent 38bfcc7 commit 5b472c2

File tree

4 files changed

+690
-61
lines changed

4 files changed

+690
-61
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org).
66

7+
## [2.5.1] - 2024-06-09
8+
#### Added
9+
* *Nothing*
10+
11+
#### Changed
12+
* *Nothing*
13+
14+
#### Deprecated
15+
* *Nothing*
16+
17+
#### Removed
18+
* *Nothing*
19+
20+
#### Fixed
21+
* Recover some rules lost when airbnb plugins were removed, by adding @stylistic eslint plugin.
22+
23+
724
## [2.5.0] - 2024-06-06
825
#### Added
926
* *Nothing*

index.js

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
'plugin:react/jsx-runtime',
77
'plugin:react-hooks/recommended'
88
],
9-
plugins: ['jsx-a11y', 'simple-import-sort'],
9+
plugins: ['jsx-a11y', 'simple-import-sort', '@stylistic'],
1010
parserOptions: {
1111
ecmaFeatures: {
1212
jsx: true
@@ -19,10 +19,26 @@ module.exports = {
1919
},
2020
rules: {
2121
// Customize rules or add on top of presets
22-
'max-len': [
22+
'@stylistic/arrow-parens': 'error',
23+
'@stylistic/arrow-spacing': 'error',
24+
'@stylistic/block-spacing': 'error',
25+
'@stylistic/comma-dangle': ['error', 'always-multiline'],
26+
'@stylistic/eol-last': 'error',
27+
'@stylistic/function-call-spacing': 'error',
28+
'@stylistic/indent': ['error', 2],
29+
'@stylistic/key-spacing': 'error',
30+
'@stylistic/keyword-spacing': 'error',
31+
'@stylistic/max-len': [
2332
'error',
2433
{ 'code': 120, 'ignoreComments': true, 'ignoreStrings': true, 'ignoreTemplateLiterals': true },
2534
],
35+
'@stylistic/no-trailing-spaces': 'error',
36+
'@stylistic/object-curly-spacing': ['error', 'always'],
37+
'@stylistic/quotes': ['error', 'single'],
38+
'@stylistic/jsx-quotes': ['error', 'prefer-double'],
39+
'@stylistic/rest-spread-spacing': 'error',
40+
'@stylistic/semi': 'error',
41+
'@stylistic/spaced-comment': 'error',
2642
'@typescript-eslint/consistent-type-imports': 'error',
2743
'simple-import-sort/imports': ['error', {
2844
'groups': [

0 commit comments

Comments
 (0)