@shlinkio/eslint-config-js-coding-standard 1.2.2 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  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).
6
6
 
7
+ ## [2.0.0] - 2022.03-26
8
+ #### Added
9
+ * Updated to airbnb coding standard
10
+
11
+ #### Changed
12
+ * *Nothing*
13
+
14
+ #### Deprecated
15
+ * *Nothing*
16
+
17
+ #### Removed
18
+ * *Nothing*
19
+
20
+ #### Fixed
21
+ * *Nothing*
22
+
23
+
7
24
  ## [1.2.2] - 2021-03-05
8
25
  #### Added
9
26
  * *Nothing*
@@ -3,6 +3,6 @@ version: '3'
3
3
  services:
4
4
  shlink_js_coding_standard_node:
5
5
  container_name: shlink_js_coding_standard_node
6
- image: node:14.15-alpine
6
+ image: node:16.14-alpine
7
7
  volumes:
8
8
  - ./:/home/shlink
package/index.js CHANGED
@@ -1,72 +1,43 @@
1
1
  module.exports = {
2
2
  extends: [
3
- 'adidas-env/browser',
4
- 'adidas-env/module',
5
- 'adidas-env/node',
6
- 'adidas-babel',
7
- 'adidas-react',
8
- 'adidas-typescript'
3
+ 'airbnb',
4
+ 'airbnb-typescript',
5
+ 'plugin:@typescript-eslint/recommended'
9
6
  ],
10
- parserOptions: {
11
- ecmaVersion: 2019,
12
- ecmaFeatures: {
13
- jsx: true
14
- }
15
- },
16
7
  rules: {
17
- 'max-len': ['error', {
18
- code: 120,
19
- ignoreStrings: true,
20
- ignoreTemplateLiterals: true,
21
- ignoreComments: true
22
- }],
23
- 'comma-dangle': 'off',
24
- 'no-invalid-this': 'off',
25
- 'no-inline-comments': 'off',
26
- 'no-console': 'warn',
27
- 'template-curly-spacing': ['error', 'never'],
28
- 'no-warning-comments': 'off',
29
- 'no-undefined': 'off',
30
- 'object-shorthand': 'off',
31
- 'no-mixed-operators': 'off',
32
- 'indent': ['error', 2, {'SwitchCase': 1}],
33
- 'no-empty-function': 'off',
34
- 'lines-around-comment': 'off',
35
- 'no-magic-numbers': 'off',
36
- 'react/no-array-index-key': 'off',
37
- 'react/no-did-update-set-state': 'off',
38
- 'react/jsx-curly-spacing': ['error', 'never'],
39
- 'react/jsx-indent-props': ['error', 2],
40
- 'react/jsx-first-prop-new-line': ['error', 'multiline-multiprop'],
41
- 'react/jsx-closing-bracket-location': ['error', 'tag-aligned'],
42
- 'react/jsx-filename-extension': ['error', {'extensions': ['.js', '.jsx', '.ts', '.tsx']}],
43
- 'react/display-name': 'off',
8
+ 'object-curly-newline': 'off',
9
+ 'implicit-arrow-linebreak': 'off',
10
+ 'no-restricted-globals': 'off',
11
+ 'default-case': 'off',
12
+ 'max-len': [
13
+ 'error',
14
+ { 'code': 120, 'ignoreComments': true, 'ignoreStrings': true, 'ignoreTemplateLiterals': true },
15
+ ],
16
+ 'import/no-cycle': 'off',
17
+ 'import/prefer-default-export': 'off',
18
+ 'import/no-extraneous-dependencies': 'off',
44
19
  'react/react-in-jsx-scope': 'off',
45
- '@typescript-eslint/explicit-function-return-type': 'off',
46
- '@typescript-eslint/no-magic-numbers': 'off',
47
- '@typescript-eslint/no-extraneous-class': 'off',
48
- '@typescript-eslint/require-array-sort-compare': 'off',
49
- '@typescript-eslint/method-signature-style': 'off',
50
- '@typescript-eslint/explicit-module-boundary-types': 'off',
51
- '@typescript-eslint/array-type': ['error', { default: 'array' }],
52
- '@typescript-eslint/comma-dangle': ['error', 'always-multiline'],
53
- '@typescript-eslint/indent': ['error', 2, { SwitchCase: 1 }],
54
- 'no-nonoctal-decimal-escape': 'off',
55
- '@typescript-eslint/no-unsafe-assignment': 'off',
56
- '@typescript-eslint/no-unsafe-member-access': 'off',
20
+ 'react/prop-types': 'off',
21
+ 'react/require-default-props': 'off',
22
+ 'react/function-component-definition': 'off',
23
+ 'react/no-array-index-key': 'off',
24
+ 'react/no-unstable-nested-components': 'off',
25
+ 'react/jsx-one-expression-per-line': 'off',
26
+ 'react/jsx-props-no-spreading': 'off',
27
+ 'react/jsx-no-useless-fragment': 'off',
28
+ '@typescript-eslint/no-unused-expressions': 'off',
57
29
  '@typescript-eslint/ban-types': 'off',
58
- '@typescript-eslint/naming-convention': 'off'
59
- },
60
- settings: {
61
- react: {
62
- version: 'detect'
63
- }
30
+ '@typescript-eslint/no-explicit-any': 'off',
31
+ '@typescript-eslint/lines-between-class-members': 'off'
64
32
  },
65
33
  overrides: [
66
34
  {
67
- 'files': ['**/*.tsx'],
68
- 'rules': {
69
- 'react/prop-types': 'off'
35
+ files: ['*.test.*'],
36
+ rules: {
37
+ 'prefer-promise-reject-errors': 'off',
38
+ 'no-param-reassign': 'off',
39
+ 'react/no-children-prop': 'off',
40
+ '@typescript-eslint/no-shadow': 'off'
70
41
  }
71
42
  }
72
43
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shlinkio/eslint-config-js-coding-standard",
3
- "version": "1.2.2",
3
+ "version": "2.0.0",
4
4
  "description": "Coding standard used by shlink JavaScript projects",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -20,23 +20,16 @@
20
20
  },
21
21
  "homepage": "https://github.com/shlinkio/js-coding-standard",
22
22
  "dependencies": {
23
- "babel-eslint": "^10.1.0",
24
- "eslint-config-adidas-babel": "^1.3.1",
25
- "eslint-config-adidas-env": "^1.3.0",
26
- "eslint-config-adidas-react": "^1.3.2",
27
- "eslint-config-adidas-typescript": "^1.4.2",
28
- "eslint-plugin-import": "^2.22.1",
29
- "eslint-plugin-jest": "^24.1.5",
30
- "eslint-plugin-jsx-a11y": "^6.4.1",
31
- "eslint-plugin-node": "^11.1.0",
32
- "eslint-plugin-promise": "^4.3.1",
33
- "eslint-plugin-react": "^7.22.0"
23
+ "@typescript-eslint/eslint-plugin": "^5.16.0",
24
+ "@typescript-eslint/parser": "^5.16.0",
25
+ "eslint-config-airbnb": "^19.0.4",
26
+ "eslint-config-airbnb-typescript": "^16.1.4"
34
27
  },
35
28
  "peerDependencies": {
36
- "eslint": "^7.21.0"
29
+ "eslint": "^8.12.0"
37
30
  },
38
31
  "devDependencies": {
39
- "eslint": "^7.21.0",
40
- "typescript": "^4.2.2"
32
+ "eslint": "^8.12.0",
33
+ "typescript": "^4.6.3"
41
34
  }
42
35
  }