Skip to content

Commit 38bfcc7

Browse files
authored
Merge pull request #111 from acelaya-forks/feature/remove-airbnb
Remove dependency on airbnb eslint plugins
2 parents aec7064 + a847ba0 commit 38bfcc7

File tree

6 files changed

+2065
-1103
lines changed

6 files changed

+2065
-1103
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.0] - 2024-06-06
8+
#### Added
9+
* *Nothing*
10+
11+
#### Changed
12+
* Make all dependencies peer dependencies, so that dependabot can update them on every project.
13+
14+
#### Deprecated
15+
* *Nothing*
16+
17+
#### Removed
18+
* Remove airbnb plugins.
19+
20+
#### Fixed
21+
* *Nothing*
22+
23+
724
## [2.4.0] - 2024-04-07
825
#### Added
926
* *Nothing*

docker-compose.override.yml.dist

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '3'
2-
31
services:
42
shlink_js_coding_standard_node:
53
user: 1000:1000

docker-compose.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
version: '3'
2-
31
services:
42
shlink_js_coding_standard_node:
53
container_name: shlink_js_coding_standard_node
6-
image: node:20.12-alpine
4+
image: node:22.1-alpine
75
volumes:
86
- ./:/home/shlink

index.js

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
module.exports = {
22
extends: [
3-
'airbnb',
4-
'airbnb-typescript',
3+
'eslint:recommended',
54
'plugin:@typescript-eslint/recommended',
5+
'plugin:react/recommended',
6+
'plugin:react/jsx-runtime',
67
'plugin:react-hooks/recommended'
78
],
8-
plugins: ['simple-import-sort'],
9+
plugins: ['jsx-a11y', 'simple-import-sort'],
10+
parserOptions: {
11+
ecmaFeatures: {
12+
jsx: true
13+
}
14+
},
15+
settings: {
16+
react: {
17+
version: 'detect'
18+
}
19+
},
920
rules: {
1021
// Customize rules or add on top of presets
1122
'max-len': [
@@ -15,6 +26,7 @@ module.exports = {
1526
'@typescript-eslint/consistent-type-imports': 'error',
1627
'simple-import-sort/imports': ['error', {
1728
'groups': [
29+
// First external imports, then local imports, then styles imports
1830
['^', '^\\.', '\\.s?css$']
1931
]
2032
}],
@@ -29,27 +41,10 @@ module.exports = {
2941
}],
3042

3143
// Disabled rules from presets
32-
'object-curly-newline': 'off',
33-
'implicit-arrow-linebreak': 'off',
34-
'no-restricted-globals': 'off',
35-
'default-case': 'off',
36-
'import/no-cycle': 'off',
37-
'import/prefer-default-export': 'off',
38-
'import/no-extraneous-dependencies': 'off',
39-
'react/react-in-jsx-scope': 'off',
44+
'react/display-name': ['off', { 'ignoreTranspilerName': false }],
4045
'react/prop-types': 'off',
41-
'react/require-default-props': 'off',
42-
'react/no-unused-prop-types': 'off',
43-
'react/function-component-definition': 'off',
44-
'react/no-array-index-key': 'off',
45-
'react/no-unstable-nested-components': 'off',
46-
'react/jsx-one-expression-per-line': 'off',
47-
'react/jsx-props-no-spreading': 'off',
48-
'react/jsx-no-useless-fragment': 'off',
49-
'@typescript-eslint/no-unused-expressions': 'off',
5046
'@typescript-eslint/ban-types': 'off',
51-
'@typescript-eslint/no-explicit-any': 'off',
52-
'@typescript-eslint/lines-between-class-members': 'off'
47+
'@typescript-eslint/no-explicit-any': 'off'
5348
},
5449
overrides: [
5550
{

0 commit comments

Comments
 (0)