Skip to content

Commit 4891ecb

Browse files
committed
Remove dependency on airbnb eslint plugins
1 parent aec7064 commit 4891ecb

File tree

6 files changed

+2064
-1084
lines changed

6 files changed

+2064
-1084
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: 16 additions & 3 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
}],
@@ -36,6 +48,7 @@ module.exports = {
3648
'import/no-cycle': 'off',
3749
'import/prefer-default-export': 'off',
3850
'import/no-extraneous-dependencies': 'off',
51+
'react/display-name': ['off', { ignoreTranspilerName: false }],
3952
'react/react-in-jsx-scope': 'off',
4053
'react/prop-types': 'off',
4154
'react/require-default-props': 'off',

0 commit comments

Comments
 (0)