Skip to content

Commit

Permalink
Recover some lost rules by adding stylistic
Browse files Browse the repository at this point in the history
  • Loading branch information
acelaya committed Jun 9, 2024
1 parent 38bfcc7 commit 5b472c2
Show file tree
Hide file tree
Showing 4 changed files with 690 additions and 61 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file.

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).

## [2.5.1] - 2024-06-09
#### Added
* *Nothing*

#### Changed
* *Nothing*

#### Deprecated
* *Nothing*

#### Removed
* *Nothing*

#### Fixed
* Recover some rules lost when airbnb plugins were removed, by adding @stylistic eslint plugin.


## [2.5.0] - 2024-06-06
#### Added
* *Nothing*
Expand Down
20 changes: 18 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended'
],
plugins: ['jsx-a11y', 'simple-import-sort'],
plugins: ['jsx-a11y', 'simple-import-sort', '@stylistic'],
parserOptions: {
ecmaFeatures: {
jsx: true
Expand All @@ -19,10 +19,26 @@ module.exports = {
},
rules: {
// Customize rules or add on top of presets
'max-len': [
'@stylistic/arrow-parens': 'error',
'@stylistic/arrow-spacing': 'error',
'@stylistic/block-spacing': 'error',
'@stylistic/comma-dangle': ['error', 'always-multiline'],
'@stylistic/eol-last': 'error',
'@stylistic/function-call-spacing': 'error',
'@stylistic/indent': ['error', 2],
'@stylistic/key-spacing': 'error',
'@stylistic/keyword-spacing': 'error',
'@stylistic/max-len': [
'error',
{ 'code': 120, 'ignoreComments': true, 'ignoreStrings': true, 'ignoreTemplateLiterals': true },
],
'@stylistic/no-trailing-spaces': 'error',
'@stylistic/object-curly-spacing': ['error', 'always'],
'@stylistic/quotes': ['error', 'single'],
'@stylistic/jsx-quotes': ['error', 'prefer-double'],
'@stylistic/rest-spread-spacing': 'error',
'@stylistic/semi': 'error',
'@stylistic/spaced-comment': 'error',
'@typescript-eslint/consistent-type-imports': 'error',
'simple-import-sort/imports': ['error', {
'groups': [
Expand Down
Loading

0 comments on commit 5b472c2

Please sign in to comment.