Skip to content

Commit

Permalink
Remove dependency on airbnb eslint plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
acelaya committed Jun 6, 2024
1 parent aec7064 commit 4891ecb
Show file tree
Hide file tree
Showing 6 changed files with 2,064 additions and 1,084 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.0] - 2024-06-06
#### Added
* *Nothing*

#### Changed
* Make all dependencies peer dependencies, so that dependabot can update them on every project.

#### Deprecated
* *Nothing*

#### Removed
* Remove airbnb plugins.

#### Fixed
* *Nothing*


## [2.4.0] - 2024-04-07
#### Added
* *Nothing*
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.override.yml.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:
shlink_js_coding_standard_node:
user: 1000:1000
Expand Down
4 changes: 1 addition & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
version: '3'

services:
shlink_js_coding_standard_node:
container_name: shlink_js_coding_standard_node
image: node:20.12-alpine
image: node:22.1-alpine
volumes:
- ./:/home/shlink
19 changes: 16 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
module.exports = {
extends: [
'airbnb',
'airbnb-typescript',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended'
],
plugins: ['simple-import-sort'],
plugins: ['jsx-a11y', 'simple-import-sort'],
parserOptions: {
ecmaFeatures: {
jsx: true
}
},
settings: {
react: {
version: 'detect'
}
},
rules: {
// Customize rules or add on top of presets
'max-len': [
Expand All @@ -15,6 +26,7 @@ module.exports = {
'@typescript-eslint/consistent-type-imports': 'error',
'simple-import-sort/imports': ['error', {
'groups': [
// First external imports, then local imports, then styles imports
['^', '^\\.', '\\.s?css$']
]
}],
Expand All @@ -36,6 +48,7 @@ module.exports = {
'import/no-cycle': 'off',
'import/prefer-default-export': 'off',
'import/no-extraneous-dependencies': 'off',
'react/display-name': ['off', { ignoreTranspilerName: false }],
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
'react/require-default-props': 'off',
Expand Down
Loading

0 comments on commit 4891ecb

Please sign in to comment.