arui-presets-lint 6.3.0 → 7.0.0-beta.1

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/README.md CHANGED
@@ -14,17 +14,10 @@
14
14
 
15
15
  [Как я могу улучшить стандарты?](./.github/CONTRIBUTING.md)
16
16
 
17
- Переходите с версии ниже чем 6.0.0? [Прочтите](MIGRATION_GUIDE_V6.md)
18
-
19
17
  ## Релизы
20
18
 
21
19
  Данный проект использует [semantic-release](https://semantic-release.gitbook.io/semantic-release/).
22
20
 
23
- ```
24
- yarn --immutable
25
- yarn semantic-release --no-ci
26
- ```
27
-
28
21
  ## Установка
29
22
 
30
23
  Для установки всех зависимостей проекта рекомендуется использовать [install-peerdeps](https://github.com/nathanhleung/install-peerdeps)
@@ -67,8 +60,7 @@ yarn info arui-presets-lint peerDependencies
67
60
  "lint:css": "stylelint **/*.css",
68
61
  "lint:scripts": "eslint \"**/*.{js,jsx,ts,tsx}\" --ext .js,.jsx,.ts,.tsx",
69
62
  "lint": "yarn lint:css && yarn lint:scripts && prettier --check \"./**/*.{ts,tsx,js,jsx,css,json}\"",
70
- "lint:fix": "yarn lint:scripts --fix && yarn lint:css --fix",
71
- "format": "prettier --write \"./**/*.{ts,tsx,js,jsx,css,json}\""
63
+ "lint:fix": "yarn lint:scripts --fix && yarn lint:css --fix && prettier --write \"./**/*.{ts,tsx,js,jsx,css,json}\"",
72
64
  }
73
65
  }
74
66
  ```
@@ -88,41 +80,13 @@ yarn info arui-presets-lint peerDependencies
88
80
  {
89
81
  "husky": {
90
82
  "hooks": {
91
- "pre-commit": "lint-staged",
92
- "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
93
- }
94
- },
95
- "lint-staged": {
96
- "*.{js,jsx,ts,tsx}": ["prettier --write", "eslint"],
97
- "*.css": ["prettier --write", "stylelint"],
98
- "*.{json,md}": ["prettier --write"]
99
- }
100
- }
101
- ```
102
-
103
- Также рекомендуется изменить вызов husky.hooks.pre-commit на `tsc --noEmit && lint-staged` для дополнительной проверки кода на ошибки typescript и добавить запуск юнит-тестов `jest --findRelatedTests` в lint-staged (последним шагом для скриптовых файлов).
104
-
105
- ## Итоговая конфигурация линтеров
106
-
107
- ```json
108
- {
109
- "scripts": {
110
- "lint:css": "stylelint **/*.css",
111
- "lint:scripts": "eslint \"**/*.{js,jsx,ts,tsx}\" --ext .js,.jsx,.ts,.tsx",
112
- "lint": "yarn lint:css && yarn lint:scripts && prettier --check \"./**/*.{ts,tsx,js,jsx,css,json}\"",
113
- "lint:fix": "yarn lint:scripts --fix && yarn lint:css --fix",
114
- "format": "prettier --write \"./**/*.{ts,tsx,js,jsx,css,json}\""
115
- },
116
- "husky": {
117
- "hooks": {
118
- "pre-commit": "lint-staged",
83
+ "pre-commit": "tsc --noEmit && lint-staged",
119
84
  "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
120
85
  }
121
86
  },
122
87
  "lint-staged": {
123
- "*.{js,jsx,ts,tsx}": ["prettier --write", "eslint"],
88
+ "*.{js,jsx,ts,tsx,json}": ["prettier --write", "eslint"],
124
89
  "*.css": ["prettier --write", "stylelint"],
125
- "*.{json,md}": ["prettier --write"]
126
90
  }
127
91
  }
128
92
  ```
@@ -144,7 +108,7 @@ yarn info arui-presets-lint peerDependencies
144
108
  ```
145
109
  The MIT License (MIT)
146
110
 
147
- Copyright (c) 2023 core-ds contributors
111
+ Copyright (c) 2024 core-ds contributors
148
112
 
149
113
  Permission is hereby granted, free of charge, to any person obtaining a copy
150
114
  of this software and associated documentation files (the "Software"), to deal
package/eslint/index.js CHANGED
@@ -173,7 +173,11 @@ module.exports = {
173
173
  'import/no-import-module-exports': 'off',
174
174
  'no-restricted-imports': [
175
175
  'error',
176
- { name:'lodash', message: 'Please use single imports of lodash functions, e.g `import isEqual from "lodash/isEqual"` instead of `"import { isEqual } from "lodash"`'},
176
+ {
177
+ name: 'lodash',
178
+ message:
179
+ 'Please use single imports of lodash functions, e.g `import isEqual from "lodash/isEqual"` instead of `"import { isEqual } from "lodash"`',
180
+ },
177
181
  ],
178
182
  },
179
183
  overrides: [
package/package.json CHANGED
@@ -1,84 +1,78 @@
1
1
  {
2
2
  "name": "arui-presets-lint",
3
- "version": "6.3.0",
3
+ "version": "7.0.0-beta.1",
4
4
  "description": "Config files for arui-apps",
5
5
  "author": "core-ds contributors",
6
6
  "license": "MIT",
7
7
  "dependencies": {
8
8
  "@alfalab/stylelint-core-vars": "1.5.0",
9
- "@commitlint/cli": "16.3.0",
10
- "@commitlint/config-conventional": "16.2.4",
11
- "arui-cssvars": "1.2.0",
9
+ "@commitlint/cli": "18.4.3",
10
+ "@commitlint/config-conventional": "18.4.3",
12
11
  "command-line-args": "5.2.1",
13
- "conventional-changelog-cli": "2.2.2"
12
+ "conventional-changelog-cli": "4.1.0"
13
+ },
14
+ "engines": {
15
+ "node": ">=18.12.0"
14
16
  },
15
17
  "peerDependencies": {
16
- "@typescript-eslint/eslint-plugin": "^5.30.6",
17
- "@typescript-eslint/parser": "^5.30.6",
18
- "eslint": "^8.20.0",
18
+ "@typescript-eslint/eslint-plugin": "^6.13.2",
19
+ "@typescript-eslint/parser": "^6.13.2",
20
+ "eslint": "^8.55.0",
19
21
  "eslint-config-airbnb": "^19.0.4",
20
- "eslint-config-airbnb-typescript": "^17.0.0",
21
- "eslint-config-prettier": "^8.5.0",
22
- "eslint-import-resolver-typescript": "~3.1.5",
23
- "eslint-plugin-cypress": "^2.12.1",
22
+ "eslint-config-airbnb-typescript": "^17.1.0",
23
+ "eslint-config-prettier": "^9.1.0",
24
+ "eslint-import-resolver-typescript": "^3.6.1",
25
+ "eslint-plugin-cypress": "^2.15.1",
24
26
  "eslint-plugin-dirnames": "^1.0.3",
25
- "eslint-plugin-import": "^2.26.0",
26
- "eslint-plugin-jsx-a11y": "^6.6.1",
27
- "eslint-plugin-react": "^7.30.1",
27
+ "eslint-plugin-import": "^2.29.0",
28
+ "eslint-plugin-jsx-a11y": "^6.8.0",
29
+ "eslint-plugin-react": "^7.33.2",
28
30
  "eslint-plugin-react-hooks": "^4.6.0",
29
- "eslint-plugin-simple-import-sort": "^7.0.0",
30
- "eslint-plugin-unicorn": "^42.0.0",
31
+ "eslint-plugin-simple-import-sort": "^10.0.0",
32
+ "eslint-plugin-unicorn": "^49.0.0",
31
33
  "husky": "^4.3.8",
32
- "lint-staged": "^12.5.0",
33
- "prettier": "^2.7.1",
34
- "stylelint": "^14.9.1",
35
- "stylelint-config-prettier": "^9.0.3"
34
+ "lint-staged": "^15.2.0",
35
+ "prettier": "^3.1.0",
36
+ "stylelint": "^16.0.1"
36
37
  },
37
38
  "devDependencies": {
38
- "@alfalab/core-components": "28.6.0",
39
- "@semantic-release/changelog": "5.0.1",
40
- "@semantic-release/commit-analyzer": "8.0.1",
41
- "@semantic-release/git": "9.0.1",
42
- "@semantic-release/github": "8.1.0",
43
- "@semantic-release/npm": "7.1.3",
44
- "@semantic-release/release-notes-generator": "9.0.3",
45
- "@typescript-eslint/eslint-plugin": "5.30.6",
46
- "@typescript-eslint/parser": "5.30.6",
47
- "arui-feather": "19.2.2",
48
- "eslint": "8.20.0",
39
+ "@alfalab/core-components": "44.3.0",
40
+ "@semantic-release/changelog": "6.0.3",
41
+ "@semantic-release/commit-analyzer": "11.1.0",
42
+ "@semantic-release/git": "10.0.1",
43
+ "@semantic-release/github": "9.2.5",
44
+ "@semantic-release/npm": "11.0.2",
45
+ "@semantic-release/release-notes-generator": "12.1.0",
46
+ "@typescript-eslint/eslint-plugin": "6.13.2",
47
+ "@typescript-eslint/parser": "6.13.2",
48
+ "eslint": "8.55.0",
49
49
  "eslint-config-airbnb": "19.0.4",
50
- "eslint-config-airbnb-typescript": "17.0.0",
51
- "eslint-config-prettier": "8.5.0",
52
- "eslint-import-resolver-typescript": "3.1.5",
53
- "eslint-plugin-cypress": "2.12.1",
50
+ "eslint-config-airbnb-typescript": "17.1.0",
51
+ "eslint-config-prettier": "9.1.0",
52
+ "eslint-import-resolver-typescript": "3.6.1",
53
+ "eslint-plugin-cypress": "2.15.1",
54
54
  "eslint-plugin-dirnames": "1.0.3",
55
- "eslint-plugin-import": "2.26.0",
56
- "eslint-plugin-jsx-a11y": "6.6.1",
57
- "eslint-plugin-react": "7.30.1",
55
+ "eslint-plugin-import": "2.29.0",
56
+ "eslint-plugin-jsx-a11y": "6.8.0",
57
+ "eslint-plugin-react": "7.33.2",
58
58
  "eslint-plugin-react-hooks": "4.6.0",
59
- "eslint-plugin-simple-import-sort": "7.0.0",
60
- "eslint-plugin-unicorn": "42.0.0",
59
+ "eslint-plugin-simple-import-sort": "10.0.0",
60
+ "eslint-plugin-unicorn": "49.0.0",
61
61
  "husky": "4.3.8",
62
- "kebab-case": "1.0.0",
63
- "lint-staged": "12.5.0",
64
- "prettier": "2.7.1",
65
- "react": "17.0.1",
66
- "semantic-release": "17.4.7",
67
- "stylelint": "14.9.1",
68
- "stylelint-config-prettier": "9.0.3",
69
- "typescript": "4.4.4"
62
+ "kebab-case": "1.0.2",
63
+ "lint-staged": "15.2.0",
64
+ "prettier": "3.1.0",
65
+ "react": "18.2.0",
66
+ "semantic-release": "22.0.9",
67
+ "stylelint": "16.0.1",
68
+ "typescript": "5.3.3"
70
69
  },
71
70
  "scripts": {
72
71
  "precommit": "lint-staged",
73
- "test": "yarn test:eslint && yarn test:stylelint",
74
- "test:eslint": "yarn eslint:prettier-conflicts-check && eslint \"./test/**/*.{ts,tsx,js,jsx}\"",
75
- "test:stylelint": "yarn stylelint:prettier-conflicts-check && node ./test/stylelint-test.js",
76
- "stylelint:prettier-conflicts-check": "stylelint-config-prettier-check",
77
- "eslint:prettier-conflicts-check": "eslint-config-prettier ./eslint/index.js",
72
+ "test": "yarn lint:scripts && eslint-config-prettier ./eslint/index.js && yarn lint:css && prettier --check \"./**/*.{ts,tsx,js,jsx,css,json}\"",
78
73
  "lint:css": "stylelint **/*.css",
79
74
  "lint:scripts": "eslint \"**/*.{js,jsx,ts,tsx}\" --ext .js,.jsx,.ts,.tsx",
80
- "lint:fix": "yarn lint:css --fix && yarn lint:scripts --fix",
81
- "format": "prettier --write \"./**/*.{ts,tsx,js,jsx,css,json,md}\""
75
+ "lint:fix": "yarn lint:css --fix && yarn lint:scripts --fix && prettier --write \"./**/*.{ts,tsx,js,jsx,css,json}\""
82
76
  },
83
77
  "lint-staged": {
84
78
  "**/*.{js,jsx,ts,tsx,json}": [
@@ -87,20 +81,9 @@
87
81
  ],
88
82
  "stylelint/*.js": [
89
83
  "prettier --write",
90
- "yarn test:stylelint"
84
+ "yarn lint:css"
91
85
  ]
92
86
  },
93
- "resolutions": {
94
- "set-value": ">=2.0.1",
95
- "js-yaml": ">=3.13.1",
96
- "braces": ">=2.3.1",
97
- "lodash.merge": ">=4.6.2",
98
- "lodash": ">=4.17.12",
99
- "mixin-deep": ">=1.3.2",
100
- "handlebars": ">=4.5.3",
101
- "kind-of": ">= 6.0.3",
102
- "minimist": ">= 1.2.3"
103
- },
104
87
  "husky": {
105
88
  "hooks": {
106
89
  "pre-commit": "yarn test",
@@ -126,5 +109,6 @@
126
109
  },
127
110
  "commitlint": {
128
111
  "extends": "./commitlint"
129
- }
112
+ },
113
+ "packageManager": "yarn@4.0.2"
130
114
  }
package/release.config.js CHANGED
@@ -1,18 +1,12 @@
1
1
  module.exports = {
2
2
  plugins: [
3
3
  '@semantic-release/commit-analyzer',
4
- [
5
- '@semantic-release/release-notes-generator',
6
- {
7
- linkReferences: false,
8
- linkCompare: false,
9
- },
10
- ],
4
+ '@semantic-release/release-notes-generator',
11
5
  '@semantic-release/changelog',
12
6
  '@semantic-release/github',
13
7
  '@semantic-release/npm',
14
8
  '@semantic-release/git',
15
9
  ],
16
- branches: ['master'],
10
+ branches: ['master', { name: 'beta', prerelease: true }],
17
11
  repositoryUrl: 'https://github.com/core-ds/arui-presets-lint.git',
18
12
  };
@@ -1,6 +1,5 @@
1
1
  module.exports = {
2
2
  rules: {
3
- 'arui-cssvars/use-variables': true,
4
3
  'block-no-empty': true,
5
4
  'color-hex-length': 'short',
6
5
  'color-no-invalid-hex': true,
@@ -27,8 +26,6 @@ module.exports = {
27
26
  'function-name-case': 'lower',
28
27
  'keyframe-declaration-no-important': true,
29
28
  'length-zero-no-unit': true,
30
- 'media-feature-range-operator-space-after': 'always',
31
- 'media-feature-range-operator-space-before': 'always',
32
29
  'no-empty-source': true,
33
30
  'no-invalid-double-slash-comments': true,
34
31
  'selector-pseudo-class-no-unknown': true,
@@ -46,8 +43,5 @@ module.exports = {
46
43
  'stylelint-core-vars/use-one-of-mixins': [true, { severity: 'warning' }],
47
44
  'stylelint-core-vars/do-not-use-dark-colors': [true, { severity: 'warning' }],
48
45
  },
49
- plugins: [
50
- require.resolve('@alfalab/stylelint-core-vars'),
51
- require.resolve('arui-cssvars/lint/stylelint'),
52
- ],
46
+ plugins: [require.resolve('@alfalab/stylelint-core-vars')],
53
47
  };
package/tsconfig.json CHANGED
@@ -1,67 +1,11 @@
1
1
  {
2
2
  "compilerOptions": {
3
- /* Basic Options */
4
- // "incremental": true, /* Enable incremental compilation */
5
- "target": "es5" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
6
- "module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
7
- // "lib": [], /* Specify library files to be included in the compilation. */
8
- // "allowJs": true, /* Allow javascript files to be compiled. */
9
- // "checkJs": true, /* Report errors in .js files. */
10
- // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
11
- // "declaration": true, /* Generates corresponding '.d.ts' file. */
12
- // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
13
- // "sourceMap": true, /* Generates corresponding '.map' file. */
14
- // "outFile": "./", /* Concatenate and emit output to single file. */
15
- // "outDir": "./", /* Redirect output structure to the directory. */
16
- // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
17
- // "composite": true, /* Enable project compilation */
18
- // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
19
- // "removeComments": true, /* Do not emit comments to output. */
20
- // "noEmit": true, /* Do not emit outputs. */
21
- // "importHelpers": true, /* Import emit helpers from 'tslib'. */
22
- // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
23
- // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
24
-
25
- /* Strict Type-Checking Options */
26
- "strict": true /* Enable all strict type-checking options. */,
27
- // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
28
- // "strictNullChecks": true, /* Enable strict null checks. */
29
- // "strictFunctionTypes": true, /* Enable strict checking of function types. */
30
- // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
31
- // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
32
- // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
33
- // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
34
-
35
- /* Additional Checks */
36
- // "noUnusedLocals": true, /* Report errors on unused locals. */
37
- // "noUnusedParameters": true, /* Report errors on unused parameters. */
38
- // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
39
- // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
40
-
41
- /* Module Resolution Options */
42
- // "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
43
- // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
44
- // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
45
- // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
46
- // "typeRoots": [], /* List of folders to include type definitions from. */
47
- // "types": [], /* Type declaration files to be included in compilation. */
48
- // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
49
- "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
50
- // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
51
- // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
52
-
53
- /* Source Map Options */
54
- // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
55
- // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
56
- // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
57
- // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
58
-
59
- /* Experimental Options */
60
- // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
61
- // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
62
-
63
- /* Advanced Options */
64
- "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
3
+ "target": "es2022",
4
+ "module": "commonjs",
5
+ "strict": true,
6
+ "esModuleInterop": true,
7
+ "forceConsistentCasingInFileNames": true,
8
+ "jsx": "react"
65
9
  },
66
10
  "include": ["**/*"]
67
11
  }
package/.eslintignore DELETED
@@ -1 +0,0 @@
1
- .idea
package/.prettierignore DELETED
@@ -1 +0,0 @@
1
- CHANGELOG.md
package/.yarnrc DELETED
@@ -1 +0,0 @@
1
- save-prefix ""
package/CHANGELOG.md DELETED
@@ -1,368 +0,0 @@
1
- # 6.3.0 (2023-12-01)
2
-
3
-
4
- ### Features
5
-
6
- * change ci configs 30f7d14
7
-
8
- # 6.2.0 (2023-05-24)
9
-
10
-
11
- ### Features
12
-
13
- * **eslint:** forbid import of lodash 7df02af
14
-
15
- # 6.1.0 (2022-12-09)
16
-
17
-
18
- ### Features
19
-
20
- * dump stylelint-core-vars fafcdfd
21
- * separate lint and format, remove incremental false from husky 75d15b9
22
-
23
- ## 6.0.1 (2022-07-27)
24
-
25
-
26
- ### Bug Fixes
27
-
28
- * **eslint:** fix node12 support 4d52210
29
-
30
- # 6.0.0 (2022-07-25)
31
-
32
-
33
- ### Features
34
-
35
- * add .yarnrc aac625f
36
- * bump semantic-release, change repository url e98a7bc
37
- * update deps a90bac2
38
- * update lint-staged and husky 1fe7d74
39
- * **build:** remove github from release config 5c361e4
40
- * **build:** remove repo from release config c8d28ca
41
- * **commitlint:** increase body-max-line-length 006ca95
42
- * **commitlint:** update commitlint libs d7bfec1
43
- * **eslint:** forbid unnecessary template literals for best prettier compatibility eee9f53
44
- * **eslint:** remove harmful eslint rules after testing 561115a
45
- * **gitignore:** add .DS_Store to .gitignore 272ae54
46
- * **package.json:** remove repo link from package.json 64b8068
47
- * **stylelint:** update stylelint, remove stylelint-prettier a61f26f
48
-
49
-
50
- * feat(eslint)!: update eslint and plugins, add eslint-config-prettier, remove prettier-eslint 0787329
51
-
52
-
53
- ### BREAKING CHANGES
54
-
55
- * dropping eslint <8 support, remove prettier-eslint
56
-
57
- # [5.10.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v5.9.0...v5.10.0) (2021-11-01)
58
-
59
-
60
- ### Bug Fixes
61
-
62
- * delete extra comment ([fec77cc](https://github.com/alfa-laboratory/arui-presets-lint/commit/fec77ccd5bb41cc3641729ea5fead768d88f141c))
63
- * remarks from pr ([fa6f23f](https://github.com/alfa-laboratory/arui-presets-lint/commit/fa6f23f0ba86d12c3b24c8e65d8c8e872d234dad))
64
- * return old husky ([95b8201](https://github.com/alfa-laboratory/arui-presets-lint/commit/95b82016adbba11e75585b27b4e1966beb77f44c))
65
- * update yarnlock ([d8885f7](https://github.com/alfa-laboratory/arui-presets-lint/commit/d8885f755e10ece1c2c77e513a6b34e393feb81f))
66
-
67
-
68
- ### Features
69
-
70
- * up libs ([08d4e78](https://github.com/alfa-laboratory/arui-presets-lint/commit/08d4e78024ad8b99b04d9e6e7848dd5d3056b7ad))
71
-
72
- # [5.9.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v5.8.0...v5.9.0) (2021-09-03)
73
-
74
-
75
- ### Features
76
-
77
- * **stylelint:** add stylelint-core-vars ([fca461d](https://github.com/alfa-laboratory/arui-presets-lint/commit/fca461dc5a2c95afb6d0be4af1a395fb0c270ecb))
78
-
79
- # [5.8.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v5.7.0...v5.8.0) (2021-05-14)
80
-
81
-
82
- ### Features
83
-
84
- * **eslint:** forbid to use context.only and test.only ([cfae8a5](https://github.com/alfa-laboratory/arui-presets-lint/commit/cfae8a5d7f42faacf24d0fbf716d2c3454ab6f65))
85
- * **eslint:** forbid to use it.only and describe.only ([dd83d79](https://github.com/alfa-laboratory/arui-presets-lint/commit/dd83d79417ca89b2e1534cbe5617832d9eac5f47))
86
-
87
- # [5.7.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v5.6.0...v5.7.0) (2021-03-10)
88
-
89
-
90
- ### Features
91
-
92
- * **eslint:** add 'no-shadow' ts rule ([5817957](https://github.com/alfa-laboratory/arui-presets-lint/commit/5817957cbaa656f868bf67f4ec4b33e69b78d233))
93
- * **eslint:** off eslint 'no-use-before-define' ([092093b](https://github.com/alfa-laboratory/arui-presets-lint/commit/092093bfd39944c8da7c241397456cafdd49b765))
94
-
95
- # [5.6.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v5.5.0...v5.6.0) (2021-02-16)
96
-
97
-
98
- ### Bug Fixes
99
-
100
- * fix yarn audit prototype pollution ([ee38bac](https://github.com/alfa-laboratory/arui-presets-lint/commit/ee38bac939329e261593153af4e28f5039503ac8))
101
-
102
-
103
- ### Features
104
-
105
- * add eslint rule for check filenames ([07b48b5](https://github.com/alfa-laboratory/arui-presets-lint/commit/07b48b5e29d3fac6115fb84d10e982ea71729af1))
106
- * update eslint-plugin-dirnames version ([2a14bb2](https://github.com/alfa-laboratory/arui-presets-lint/commit/2a14bb23d2d80283222e7d368607b056a8764cd6))
107
- * update lint for check filenames & dirnames ([434b48a](https://github.com/alfa-laboratory/arui-presets-lint/commit/434b48acc94e5c15e2e1b15cce3b1e8df13c7cf7))
108
- * update package.json ([e39da16](https://github.com/alfa-laboratory/arui-presets-lint/commit/e39da1640c3176e6116f56a082dd41c81c50755b))
109
- * update yarn.lock ([3f708aa](https://github.com/alfa-laboratory/arui-presets-lint/commit/3f708aa264ff18eb746deb848285cabf105f4638))
110
- * update yarn.lock ([1abc126](https://github.com/alfa-laboratory/arui-presets-lint/commit/1abc126673b37764509bbeb16905fa263dfac324))
111
-
112
- # [5.5.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v5.4.1...v5.5.0) (2021-02-12)
113
-
114
-
115
- ### Features
116
-
117
- * **eslint:** add padding-line-between-statements rule ([46da359](https://github.com/alfa-laboratory/arui-presets-lint/commit/46da3591c67a6d44db73516d14419852837c4faa))
118
-
119
- ## [5.4.1](https://github.com/alfa-laboratory/arui-presets-lint/compare/v5.4.0...v5.4.1) (2021-01-25)
120
-
121
-
122
- ### Bug Fixes
123
-
124
- * **eslint:** add ignore typescript generic type params ([f7c1d35](https://github.com/alfa-laboratory/arui-presets-lint/commit/f7c1d354234a1f7bec7da1c157333b97bccf6bdc))
125
-
126
- # [5.4.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v5.3.1...v5.4.0) (2020-12-14)
127
-
128
-
129
- ### Features
130
-
131
- * disable jsx-one-expression-per-line ([bcba37b](https://github.com/alfa-laboratory/arui-presets-lint/commit/bcba37b9516306011a8914403814990d6336d7e8))
132
-
133
- ## [5.3.1](https://github.com/alfa-laboratory/arui-presets-lint/compare/v5.3.0...v5.3.1) (2020-10-02)
134
-
135
-
136
- ### Bug Fixes
137
-
138
- * adds new package for semantic-release ([e999b7b](https://github.com/alfa-laboratory/arui-presets-lint/commit/e999b7b7591c7d2eacbcb2a13d903ecb6855c895))
139
- * adds token for npm-publish ([73ccf46](https://github.com/alfa-laboratory/arui-presets-lint/commit/73ccf46f0325d21eea8875e38756d78ef23d7add))
140
- * changed rules for codeowners ([8d40eb0](https://github.com/alfa-laboratory/arui-presets-lint/commit/8d40eb0fb1d26440e751809d5cdaf85ae68f1094))
141
- * changed rules for CODEOWNERS ([7d7cd38](https://github.com/alfa-laboratory/arui-presets-lint/commit/7d7cd3889e30ce08d8bac2367cc3ffc9da46cb1b))
142
- * changed version ([26adf63](https://github.com/alfa-laboratory/arui-presets-lint/commit/26adf632ce7e79bb821aab5272c22bfed8c5f66b))
143
-
144
- # [5.1.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v5.0.0...v5.1.0) (2020-09-03)
145
-
146
-
147
- ### Features
148
-
149
- * update prettier, stylelint ([55b3aa4](https://github.com/alfa-laboratory/arui-presets-lint/commit/55b3aa472c3c584bf1606c765d20acd348ad06a0))
150
-
151
- # [5.0.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v4.3.0...v5.0.0) (2020-08-26)
152
-
153
-
154
- ### Bug Fixes
155
-
156
- * adds all deleted dependencies ([823a275](https://github.com/alfa-laboratory/arui-presets-lint/commit/823a2757ffa4f99c4c8ba6062ce9df926cde0858))
157
-
158
-
159
- ### Features
160
-
161
- * add some rules ([7e1ec33](https://github.com/alfa-laboratory/arui-presets-lint/commit/7e1ec3380f5e2993fbe4032a42cd2699aaf8cbb8))
162
- * add some rules ([ecec52a](https://github.com/alfa-laboratory/arui-presets-lint/commit/ecec52a6d7184c795f4e78bec55845f95e51d24f))
163
- * resolve yarn.lock ([85b5ae7](https://github.com/alfa-laboratory/arui-presets-lint/commit/85b5ae771c4c8a08f9a30aad486a22a9934a116c))
164
- * **eslint:** add .eslintrc.js in .eslintignore ([b22988a](https://github.com/alfa-laboratory/arui-presets-lint/commit/b22988a6a3b1e3afed54f76a4de3a85d63ff607d))
165
- * **eslint:** removed node.js v8.* support ([abb7ed8](https://github.com/alfa-laboratory/arui-presets-lint/commit/abb7ed834518d82e47448f9fe91e5bd267d0f1ce))
166
- * **eslint:** update config for eslint ([cad9237](https://github.com/alfa-laboratory/arui-presets-lint/commit/cad92374b6db1ea1db9d2f80eaaf0407f6dbb7fb))
167
- * **eslint:** update deps ([5516c1c](https://github.com/alfa-laboratory/arui-presets-lint/commit/5516c1c16b51e471d89fd76b895c93ceb0acb750))
168
-
169
-
170
- ### BREAKING CHANGES
171
-
172
- * dropped node.js 8 support, eslint was updated from 6 to 7
173
-
174
- # [4.3.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v4.2.3...v4.3.0) (2020-08-24)
175
-
176
-
177
- ### Bug Fixes
178
-
179
- * adds some fix ([396dfea](https://github.com/alfa-laboratory/arui-presets-lint/commit/396dfea6fa159c08287fcd9a5fff008bcff467df))
180
- * **eslint:** replace deprecated label-has-for ([a24ab8e](https://github.com/alfa-laboratory/arui-presets-lint/commit/a24ab8e838bc40abfdbc6d341233a53507d15d58)), closes [#56](https://github.com/alfa-laboratory/arui-presets-lint/issues/56)
181
-
182
-
183
- ### Features
184
-
185
- * adds dependencies for semantic-release ([18c84a3](https://github.com/alfa-laboratory/arui-presets-lint/commit/18c84a3ed7b067497295983407ecd4fb0c7a2463))
186
- * adds new github token ([a903035](https://github.com/alfa-laboratory/arui-presets-lint/commit/a9030359af27204457656f9caada2bee174387a9))
187
- * adds new github workflows ([28621e2](https://github.com/alfa-laboratory/arui-presets-lint/commit/28621e2f4b301dbe0e03740645e3e8ffc62a8e07))
188
- * adds release.config for semantic-release ([d517bfd](https://github.com/alfa-laboratory/arui-presets-lint/commit/d517bfdbc72c377805ec55de21dcc047169fea14))
189
- * **nodejs:** deleted test for 8th node's version ([edf247e](https://github.com/alfa-laboratory/arui-presets-lint/commit/edf247ed5731cc7158e182bb1006a2370770133e))
190
-
191
- <a name="4.2.3"></a>
192
- ## [4.2.3](https://github.com/alfa-laboratory/arui-presets-lint/compare/v4.2.2...v4.2.3) (2020-07-09)
193
-
194
-
195
- ### Features
196
-
197
- * **upgrade:** upgraded a library ([#75](https://github.com/alfa-laboratory/arui-presets-lint/issues/75)) ([a8fb323](https://github.com/alfa-laboratory/arui-presets-lint/commit/a8fb323))
198
-
199
-
200
-
201
- <a name="4.2.2"></a>
202
- ## [4.2.2](https://github.com/alfa-laboratory/arui-presets-lint/compare/v4.2.1...v4.2.2) (2020-06-22)
203
-
204
-
205
- ### Bug Fixes
206
-
207
- * **eslint:** disable max-len explicitly ([e58103f](https://github.com/alfa-laboratory/arui-presets-lint/commit/e58103f))
208
-
209
-
210
-
211
- <a name="4.2.1"></a>
212
- ## [4.2.1](https://github.com/alfa-laboratory/arui-presets-lint/compare/v4.2.0...v4.2.1) (2020-06-22)
213
-
214
-
215
- ### Bug Fixes
216
-
217
- * **eslint:** disable conflict rules ([d4b2af5](https://github.com/alfa-laboratory/arui-presets-lint/commit/d4b2af5))
218
- * **eslint:** remove max-len ([ab5be9c](https://github.com/alfa-laboratory/arui-presets-lint/commit/ab5be9c))
219
-
220
-
221
-
222
- <a name="4.2.0"></a>
223
- # [4.2.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v4.1.3...v4.2.0) (2020-04-30)
224
-
225
-
226
- ### Features
227
-
228
- * **upgrade:** add no-useles-path-segments rule ([043fdc6](https://github.com/alfa-laboratory/arui-presets-lint/commit/043fdc6))
229
-
230
-
231
-
232
- <a name="4.1.2"></a>
233
- ## [4.1.2](https://github.com/alfa-laboratory/arui-presets-lint/compare/v4.1.1...v4.1.2) (2020-04-09)
234
-
235
-
236
- ### Bug Fixes
237
-
238
- * **eslint:** added avoidEscape for quotes ([cbd63d8](https://github.com/alfa-laboratory/arui-presets-lint/commit/cbd63d8))
239
-
240
-
241
- ### Features
242
-
243
- * add dirnames eslint rule ([d33eb66](https://github.com/alfa-laboratory/arui-presets-lint/commit/d33eb66))
244
-
245
-
246
-
247
- <a name="4.1.1"></a>
248
- ## [4.1.1](https://github.com/alfa-laboratory/arui-presets-lint/compare/v4.1.0...v4.1.1) (2020-04-06)
249
-
250
-
251
- ### Bug Fixes
252
-
253
- * update yarn.lock ([eab5945](https://github.com/alfa-laboratory/arui-presets-lint/commit/eab5945))
254
- * **arui-cssvars:** fix library ([0599231](https://github.com/alfa-laboratory/arui-presets-lint/commit/0599231))
255
- * **arui-cssvars:** update lib version to skip warnings when linter rule is disabled ([c1e4565](https://github.com/alfa-laboratory/arui-presets-lint/commit/c1e4565))
256
-
257
-
258
-
259
- <a name="4.1.0"></a>
260
- # [4.1.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v4.0.0...v4.1.0) (2020-03-26)
261
-
262
-
263
- ### Bug Fixes
264
-
265
- * **eslint:** allow to import devDependencies in storybook and test files ([ec264d4](https://github.com/alfa-laboratory/arui-presets-lint/commit/ec264d4))
266
- * **eslint:** resolve conflict with prettier ([1be5db5](https://github.com/alfa-laboratory/arui-presets-lint/commit/1be5db5))
267
-
268
-
269
- ### Features
270
-
271
- * **eslint:** add cypress support ([f93f601](https://github.com/alfa-laboratory/arui-presets-lint/commit/f93f601))
272
-
273
-
274
-
275
- <a name="4.0.0"></a>
276
- # [4.0.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v3.0.1...v4.0.0) (2020-03-18)
277
-
278
-
279
- ### Bug Fixes
280
-
281
- * **eslint:** disable indent and max-len rules ([97967ed](https://github.com/alfa-laboratory/arui-presets-lint/commit/97967ed))
282
- * **eslint:** use ts parser for all files ([609cda5](https://github.com/alfa-laboratory/arui-presets-lint/commit/609cda5))
283
- * **package:** fix yarn audit errors ([3f73abc](https://github.com/alfa-laboratory/arui-presets-lint/commit/3f73abc))
284
- * **package:** restore version string ([a59243c](https://github.com/alfa-laboratory/arui-presets-lint/commit/a59243c))
285
-
286
-
287
- ### Features
288
-
289
- * add prettier ([077b698](https://github.com/alfa-laboratory/arui-presets-lint/commit/077b698))
290
- * add ts example ([dd2c8b0](https://github.com/alfa-laboratory/arui-presets-lint/commit/dd2c8b0))
291
- * new configuration, add prettier instructions ([3e0fa81](https://github.com/alfa-laboratory/arui-presets-lint/commit/3e0fa81))
292
- * use prettier instead of prettier-eslint ([b954d26](https://github.com/alfa-laboratory/arui-presets-lint/commit/b954d26))
293
- * **eslint:** add warn rules for formatting ([921947d](https://github.com/alfa-laboratory/arui-presets-lint/commit/921947d))
294
-
295
-
296
-
297
- <a name="3.0.1"></a>
298
- ## [3.0.1](https://github.com/alfa-laboratory/arui-presets-lint/compare/v3.0.0...v3.0.1) (2020-02-12)
299
-
300
-
301
- ### Features
302
-
303
- * remove jsx-one-expression-per-line ([edca46e](https://github.com/alfa-laboratory/arui-presets-lint/commit/edca46e))
304
-
305
-
306
-
307
- <a name="3.0.0"></a>
308
- # [3.0.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v2.0.1...v3.0.0) (2020-02-12)
309
-
310
-
311
- ### Bug Fixes
312
-
313
- * **js-input:** fix eslint errors ([5b34d19](https://github.com/alfa-laboratory/arui-presets-lint/commit/5b34d19))
314
-
315
-
316
- ### Features
317
-
318
- * **dependencies:** add eslint-plugin-react-hooks and extend rules. update plugin eslint ([4d73805](https://github.com/alfa-laboratory/arui-presets-lint/commit/4d73805))
319
-
320
-
321
-
322
- <a name="2.0.1"></a>
323
- ## [2.0.1](https://github.com/alfa-laboratory/arui-presets-lint/compare/v2.0.0...v2.0.1) (2019-12-24)
324
-
325
-
326
- ### Bug Fixes
327
-
328
- * **stylelint:** fix path to plugin, up plugin version ([e1ebf5e](https://github.com/alfa-laboratory/arui-presets-lint/commit/e1ebf5e))
329
-
330
-
331
-
332
- <a name="2.0.0"></a>
333
- # [2.0.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v1.2.1...v2.0.0) (2019-12-06)
334
-
335
-
336
-
337
- <a name="1.2.1"></a>
338
- ## [1.2.1](https://github.com/alfa-laboratory/arui-presets-lint/compare/v1.1.0...v1.2.1) (2019-09-03)
339
-
340
-
341
- ### Bug Fixes
342
-
343
- * **eslint:** disable multiline-comment-style rule ([65ea774](https://github.com/alfa-laboratory/arui-presets-lint/commit/65ea774))
344
-
345
-
346
- ### Features
347
-
348
- * **stylelint:** use arui-cssvars ([2a2cc6e](https://github.com/alfa-laboratory/arui-presets-lint/commit/2a2cc6e))
349
-
350
-
351
-
352
- <a name="1.2.0"></a>
353
- # [1.2.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v1.1.0...v1.2.0) (2019-04-04)
354
-
355
-
356
- ### Features
357
-
358
- * **stylelint:** use arui-cssvars ([2a2cc6e](https://github.com/alfa-laboratory/arui-presets-lint/commit/2a2cc6e))
359
-
360
-
361
-
362
- <a name="1.1.0"></a>
363
- # 1.1.0 (2019-03-13)
364
-
365
-
366
- ### Features
367
-
368
- * **configuration:** add new stylistic rules ([d6500f6](https://github.com/alfa-laboratory/arui-presets-lint/commit/d6500f6))
@@ -1,22 +0,0 @@
1
- Для успешной миграции на v6 с более ранних версий нужно:
2
-
3
- 1. Проверить, что в проекте стоит версия nodejs не ниже 12.22.0 / 14.17.0.
4
-
5
- 2. Удалить более неиспользуемые зависимости:
6
-
7
- ```sh
8
- yarn remove prettier-eslint prettier-eslint-cli eslint-plugin-prettier
9
- ```
10
-
11
- 3. Добавить текущие зависимости [README.md](README.md)(##Установка)
12
-
13
- 4. Заменить вызовы prettier-eslint на prettier:
14
-
15
- - в lint-staged [README.md](README.md)(## Конфигурация `husky` и `lint-staged`)
16
- - в скриптах package.json [README.md](README.md)(## Конфигурация скриптов для запуска линтеров и форматтера в `package.json`)
17
-
18
- 5. (Опционально) Поменять подключаемый конфиг [README.md](README.md)(## Конфигурация всех линтеров через `package.json`). Что изменилось: в `eslintConfig.extends` больше не нужно писать `/index.js` в конце, а `commitlint.extends` теперь может быть строкой, а не массивом.
19
-
20
- 6. Выполнить команду `yarn format`, затем `yarn lint:fix` и поправить возникающие ошибки (предупреждения в моменте править не обязательно, если не включен --max-warnings=0).
21
-
22
- 7. Сообщить остальным людям которые работают с проектом, что нужно доустановить зависимости (`yarn install`) и перенастроить IDE [README.md](README.md)(## Настройка IDE)
File without changes