Skip to content

Commit

Permalink
Merge pull request #111 from acelaya-forks/feature/remove-airbnb
Browse files Browse the repository at this point in the history
Remove dependency on airbnb eslint plugins
  • Loading branch information
acelaya authored Jun 6, 2024
2 parents aec7064 + a847ba0 commit 38bfcc7
Show file tree
Hide file tree
Showing 6 changed files with 2,065 additions and 1,103 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
39 changes: 17 additions & 22 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 @@ -29,27 +41,10 @@ module.exports = {
}],

// Disabled rules from presets
'object-curly-newline': 'off',
'implicit-arrow-linebreak': 'off',
'no-restricted-globals': 'off',
'default-case': 'off',
'import/no-cycle': 'off',
'import/prefer-default-export': 'off',
'import/no-extraneous-dependencies': 'off',
'react/react-in-jsx-scope': 'off',
'react/display-name': ['off', { 'ignoreTranspilerName': false }],
'react/prop-types': 'off',
'react/require-default-props': 'off',
'react/no-unused-prop-types': 'off',
'react/function-component-definition': 'off',
'react/no-array-index-key': 'off',
'react/no-unstable-nested-components': 'off',
'react/jsx-one-expression-per-line': 'off',
'react/jsx-props-no-spreading': 'off',
'react/jsx-no-useless-fragment': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/lines-between-class-members': 'off'
'@typescript-eslint/no-explicit-any': 'off'
},
overrides: [
{
Expand Down
Loading

0 comments on commit 38bfcc7

Please sign in to comment.