arui-presets-lint 6.2.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 +8 -44
- package/eslint/index.js +5 -1
- package/package.json +54 -69
- package/release.config.js +4 -8
- package/stylelint/index.js +1 -7
- package/tsconfig.json +6 -62
- package/.eslintignore +0 -1
- package/.prettierignore +0 -1
- package/.yarnrc +0 -1
- package/CHANGELOG.md +0 -361
- package/CODEOWNERS +0 -1
- package/MIGRATION_GUIDE_V6.md +0 -22
- /package/{prettier.js → prettier/index.js} +0 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Общая конфигурация линтеров
|
|
2
2
|
|
|
3
3
|
[![npm][npm-img]][npm]
|
|
4
4
|
[![license][license-img]][license]
|
|
@@ -14,19 +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
|
-
Релизы публикуются руками. Если вам нужно выпустить новую версию библиотеки - выполните следующие действия (а лучше прикрутите сюда нормальный ci):
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
yarn --immutable
|
|
27
|
-
yarn semantic-release --no-ci
|
|
28
|
-
```
|
|
29
|
-
|
|
30
21
|
## Установка
|
|
31
22
|
|
|
32
23
|
Для установки всех зависимостей проекта рекомендуется использовать [install-peerdeps](https://github.com/nathanhleung/install-peerdeps)
|
|
@@ -68,9 +59,8 @@ yarn info arui-presets-lint peerDependencies
|
|
|
68
59
|
"scripts": {
|
|
69
60
|
"lint:css": "stylelint **/*.css",
|
|
70
61
|
"lint:scripts": "eslint \"**/*.{js,jsx,ts,tsx}\" --ext .js,.jsx,.ts,.tsx",
|
|
71
|
-
"lint": "yarn lint:css && yarn lint:scripts",
|
|
72
|
-
"lint:fix": "yarn lint:scripts --fix && yarn lint:css --fix",
|
|
73
|
-
"format": "prettier --write \"./**/*.{ts,tsx,js,jsx,css,json,md}\""
|
|
62
|
+
"lint": "yarn lint:css && yarn lint:scripts && prettier --check \"./**/*.{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}\"",
|
|
74
64
|
}
|
|
75
65
|
}
|
|
76
66
|
```
|
|
@@ -80,6 +70,8 @@ yarn info arui-presets-lint peerDependencies
|
|
|
80
70
|
|
|
81
71
|
> ⚠️ Внимание, .eslintignore [по умолчанию не подтягиватся в lint-staged](https://github.com/okonet/lint-staged#how-can-i-ignore-files-from-eslintignore)!
|
|
82
72
|
|
|
73
|
+
Так же можно добавить к командам аргумент `--ignore-path` со значением `.gitignore`, в этом случае конфиг из дефолтных файлов (.eslintignore, .stylelintignore, .prettierignore) не будет применятся, но можно добавить специфичные правила в конфиг ([eslintConfig.ignorePatterns](https://eslint.org/docs/latest/use/configure/ignore#ignorepatterns-in-config-files), [stylelintConfig.ignoreFiles](https://stylelint.io/user-guide/configure#ignorefiles)).
|
|
74
|
+
|
|
83
75
|
Для запуска eslint/stylelint рекомендуется использовать флаг [--max-warnings](https://eslint.org/docs/latest/user-guide/command-line-interface#--max-warnings), который позволяет ограничить количество возникающих предупреждений.
|
|
84
76
|
|
|
85
77
|
## Конфигурация `husky` и `lint-staged`:
|
|
@@ -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",
|
|
113
|
-
"lint:fix": "yarn lint:scripts --fix && yarn lint:css --fix",
|
|
114
|
-
"format": "prettier --write \"./**/*.{ts,tsx,js,jsx,css,json,md}\""
|
|
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)
|
|
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
|
-
{
|
|
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,83 +1,78 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arui-presets-lint",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0-beta.1",
|
|
4
4
|
"description": "Config files for arui-apps",
|
|
5
|
-
"author": "
|
|
5
|
+
"author": "core-ds contributors",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@alfalab/stylelint-core-vars": "1.5.0",
|
|
9
|
-
"@commitlint/cli": "
|
|
10
|
-
"@commitlint/config-conventional": "
|
|
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": "
|
|
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": "^
|
|
17
|
-
"@typescript-eslint/parser": "^
|
|
18
|
-
"eslint": "^8.
|
|
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.
|
|
21
|
-
"eslint-config-prettier": "^
|
|
22
|
-
"eslint-import-resolver-typescript": "
|
|
23
|
-
"eslint-plugin-cypress": "^2.
|
|
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
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
27
|
-
"eslint-plugin-react": "^7.
|
|
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": "^
|
|
30
|
-
"eslint-plugin-unicorn": "^
|
|
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": "^
|
|
33
|
-
"prettier": "^
|
|
34
|
-
"stylelint": "^
|
|
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": "
|
|
39
|
-
"@semantic-release/changelog": "
|
|
40
|
-
"@semantic-release/commit-analyzer": "
|
|
41
|
-
"@semantic-release/git": "
|
|
42
|
-
"@semantic-release/
|
|
43
|
-
"@semantic-release/
|
|
44
|
-
"@
|
|
45
|
-
"@typescript-eslint/
|
|
46
|
-
"
|
|
47
|
-
"eslint": "8.
|
|
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",
|
|
48
49
|
"eslint-config-airbnb": "19.0.4",
|
|
49
|
-
"eslint-config-airbnb-typescript": "17.
|
|
50
|
-
"eslint-config-prettier": "
|
|
51
|
-
"eslint-import-resolver-typescript": "3.1
|
|
52
|
-
"eslint-plugin-cypress": "2.
|
|
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",
|
|
53
54
|
"eslint-plugin-dirnames": "1.0.3",
|
|
54
|
-
"eslint-plugin-import": "2.
|
|
55
|
-
"eslint-plugin-jsx-a11y": "6.
|
|
56
|
-
"eslint-plugin-react": "7.
|
|
55
|
+
"eslint-plugin-import": "2.29.0",
|
|
56
|
+
"eslint-plugin-jsx-a11y": "6.8.0",
|
|
57
|
+
"eslint-plugin-react": "7.33.2",
|
|
57
58
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
58
|
-
"eslint-plugin-simple-import-sort": "
|
|
59
|
-
"eslint-plugin-unicorn": "
|
|
59
|
+
"eslint-plugin-simple-import-sort": "10.0.0",
|
|
60
|
+
"eslint-plugin-unicorn": "49.0.0",
|
|
60
61
|
"husky": "4.3.8",
|
|
61
|
-
"kebab-case": "1.0.
|
|
62
|
-
"lint-staged": "
|
|
63
|
-
"prettier": "
|
|
64
|
-
"react": "
|
|
65
|
-
"semantic-release": "
|
|
66
|
-
"stylelint": "
|
|
67
|
-
"
|
|
68
|
-
"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"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"precommit": "lint-staged",
|
|
72
|
-
"test": "yarn
|
|
73
|
-
"test:eslint": "yarn eslint:prettier-conflicts-check && eslint \"./test/**/*.{ts,tsx,js,jsx}\"",
|
|
74
|
-
"test:stylelint": "yarn stylelint:prettier-conflicts-check && node ./test/stylelint-test.js",
|
|
75
|
-
"stylelint:prettier-conflicts-check": "stylelint-config-prettier-check",
|
|
76
|
-
"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}\"",
|
|
77
73
|
"lint:css": "stylelint **/*.css",
|
|
78
74
|
"lint:scripts": "eslint \"**/*.{js,jsx,ts,tsx}\" --ext .js,.jsx,.ts,.tsx",
|
|
79
|
-
"lint:fix": "yarn lint:css --fix && yarn lint:scripts --fix",
|
|
80
|
-
"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}\""
|
|
81
76
|
},
|
|
82
77
|
"lint-staged": {
|
|
83
78
|
"**/*.{js,jsx,ts,tsx,json}": [
|
|
@@ -86,20 +81,9 @@
|
|
|
86
81
|
],
|
|
87
82
|
"stylelint/*.js": [
|
|
88
83
|
"prettier --write",
|
|
89
|
-
"yarn
|
|
84
|
+
"yarn lint:css"
|
|
90
85
|
]
|
|
91
86
|
},
|
|
92
|
-
"resolutions": {
|
|
93
|
-
"set-value": ">=2.0.1",
|
|
94
|
-
"js-yaml": ">=3.13.1",
|
|
95
|
-
"braces": ">=2.3.1",
|
|
96
|
-
"lodash.merge": ">=4.6.2",
|
|
97
|
-
"lodash": ">=4.17.12",
|
|
98
|
-
"mixin-deep": ">=1.3.2",
|
|
99
|
-
"handlebars": ">=4.5.3",
|
|
100
|
-
"kind-of": ">= 6.0.3",
|
|
101
|
-
"minimist": ">= 1.2.3"
|
|
102
|
-
},
|
|
103
87
|
"husky": {
|
|
104
88
|
"hooks": {
|
|
105
89
|
"pre-commit": "yarn test",
|
|
@@ -125,5 +109,6 @@
|
|
|
125
109
|
},
|
|
126
110
|
"commitlint": {
|
|
127
111
|
"extends": "./commitlint"
|
|
128
|
-
}
|
|
112
|
+
},
|
|
113
|
+
"packageManager": "yarn@4.0.2"
|
|
129
114
|
}
|
package/release.config.js
CHANGED
|
@@ -1,16 +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',
|
|
6
|
+
'@semantic-release/github',
|
|
12
7
|
'@semantic-release/npm',
|
|
13
8
|
'@semantic-release/git',
|
|
14
9
|
],
|
|
15
|
-
branches: ['master'],
|
|
10
|
+
branches: ['master', { name: 'beta', prerelease: true }],
|
|
11
|
+
repositoryUrl: 'https://github.com/core-ds/arui-presets-lint.git',
|
|
16
12
|
};
|
package/stylelint/index.js
CHANGED
|
@@ -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
|
-
|
|
4
|
-
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
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,361 +0,0 @@
|
|
|
1
|
-
# 6.2.0 (2023-05-24)
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Features
|
|
5
|
-
|
|
6
|
-
* **eslint:** forbid import of lodash 7df02af
|
|
7
|
-
|
|
8
|
-
# 6.1.0 (2022-12-09)
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
### Features
|
|
12
|
-
|
|
13
|
-
* dump stylelint-core-vars fafcdfd
|
|
14
|
-
* separate lint and format, remove incremental false from husky 75d15b9
|
|
15
|
-
|
|
16
|
-
## 6.0.1 (2022-07-27)
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
### Bug Fixes
|
|
20
|
-
|
|
21
|
-
* **eslint:** fix node12 support 4d52210
|
|
22
|
-
|
|
23
|
-
# 6.0.0 (2022-07-25)
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
### Features
|
|
27
|
-
|
|
28
|
-
* add .yarnrc aac625f
|
|
29
|
-
* bump semantic-release, change repository url e98a7bc
|
|
30
|
-
* update deps a90bac2
|
|
31
|
-
* update lint-staged and husky 1fe7d74
|
|
32
|
-
* **build:** remove github from release config 5c361e4
|
|
33
|
-
* **build:** remove repo from release config c8d28ca
|
|
34
|
-
* **commitlint:** increase body-max-line-length 006ca95
|
|
35
|
-
* **commitlint:** update commitlint libs d7bfec1
|
|
36
|
-
* **eslint:** forbid unnecessary template literals for best prettier compatibility eee9f53
|
|
37
|
-
* **eslint:** remove harmful eslint rules after testing 561115a
|
|
38
|
-
* **gitignore:** add .DS_Store to .gitignore 272ae54
|
|
39
|
-
* **package.json:** remove repo link from package.json 64b8068
|
|
40
|
-
* **stylelint:** update stylelint, remove stylelint-prettier a61f26f
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
* feat(eslint)!: update eslint and plugins, add eslint-config-prettier, remove prettier-eslint 0787329
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
### BREAKING CHANGES
|
|
47
|
-
|
|
48
|
-
* dropping eslint <8 support, remove prettier-eslint
|
|
49
|
-
|
|
50
|
-
# [5.10.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v5.9.0...v5.10.0) (2021-11-01)
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
### Bug Fixes
|
|
54
|
-
|
|
55
|
-
* delete extra comment ([fec77cc](https://github.com/alfa-laboratory/arui-presets-lint/commit/fec77ccd5bb41cc3641729ea5fead768d88f141c))
|
|
56
|
-
* remarks from pr ([fa6f23f](https://github.com/alfa-laboratory/arui-presets-lint/commit/fa6f23f0ba86d12c3b24c8e65d8c8e872d234dad))
|
|
57
|
-
* return old husky ([95b8201](https://github.com/alfa-laboratory/arui-presets-lint/commit/95b82016adbba11e75585b27b4e1966beb77f44c))
|
|
58
|
-
* update yarnlock ([d8885f7](https://github.com/alfa-laboratory/arui-presets-lint/commit/d8885f755e10ece1c2c77e513a6b34e393feb81f))
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
### Features
|
|
62
|
-
|
|
63
|
-
* up libs ([08d4e78](https://github.com/alfa-laboratory/arui-presets-lint/commit/08d4e78024ad8b99b04d9e6e7848dd5d3056b7ad))
|
|
64
|
-
|
|
65
|
-
# [5.9.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v5.8.0...v5.9.0) (2021-09-03)
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
### Features
|
|
69
|
-
|
|
70
|
-
* **stylelint:** add stylelint-core-vars ([fca461d](https://github.com/alfa-laboratory/arui-presets-lint/commit/fca461dc5a2c95afb6d0be4af1a395fb0c270ecb))
|
|
71
|
-
|
|
72
|
-
# [5.8.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v5.7.0...v5.8.0) (2021-05-14)
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
### Features
|
|
76
|
-
|
|
77
|
-
* **eslint:** forbid to use context.only and test.only ([cfae8a5](https://github.com/alfa-laboratory/arui-presets-lint/commit/cfae8a5d7f42faacf24d0fbf716d2c3454ab6f65))
|
|
78
|
-
* **eslint:** forbid to use it.only and describe.only ([dd83d79](https://github.com/alfa-laboratory/arui-presets-lint/commit/dd83d79417ca89b2e1534cbe5617832d9eac5f47))
|
|
79
|
-
|
|
80
|
-
# [5.7.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v5.6.0...v5.7.0) (2021-03-10)
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
### Features
|
|
84
|
-
|
|
85
|
-
* **eslint:** add 'no-shadow' ts rule ([5817957](https://github.com/alfa-laboratory/arui-presets-lint/commit/5817957cbaa656f868bf67f4ec4b33e69b78d233))
|
|
86
|
-
* **eslint:** off eslint 'no-use-before-define' ([092093b](https://github.com/alfa-laboratory/arui-presets-lint/commit/092093bfd39944c8da7c241397456cafdd49b765))
|
|
87
|
-
|
|
88
|
-
# [5.6.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v5.5.0...v5.6.0) (2021-02-16)
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
### Bug Fixes
|
|
92
|
-
|
|
93
|
-
* fix yarn audit prototype pollution ([ee38bac](https://github.com/alfa-laboratory/arui-presets-lint/commit/ee38bac939329e261593153af4e28f5039503ac8))
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
### Features
|
|
97
|
-
|
|
98
|
-
* add eslint rule for check filenames ([07b48b5](https://github.com/alfa-laboratory/arui-presets-lint/commit/07b48b5e29d3fac6115fb84d10e982ea71729af1))
|
|
99
|
-
* update eslint-plugin-dirnames version ([2a14bb2](https://github.com/alfa-laboratory/arui-presets-lint/commit/2a14bb23d2d80283222e7d368607b056a8764cd6))
|
|
100
|
-
* update lint for check filenames & dirnames ([434b48a](https://github.com/alfa-laboratory/arui-presets-lint/commit/434b48acc94e5c15e2e1b15cce3b1e8df13c7cf7))
|
|
101
|
-
* update package.json ([e39da16](https://github.com/alfa-laboratory/arui-presets-lint/commit/e39da1640c3176e6116f56a082dd41c81c50755b))
|
|
102
|
-
* update yarn.lock ([3f708aa](https://github.com/alfa-laboratory/arui-presets-lint/commit/3f708aa264ff18eb746deb848285cabf105f4638))
|
|
103
|
-
* update yarn.lock ([1abc126](https://github.com/alfa-laboratory/arui-presets-lint/commit/1abc126673b37764509bbeb16905fa263dfac324))
|
|
104
|
-
|
|
105
|
-
# [5.5.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v5.4.1...v5.5.0) (2021-02-12)
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
### Features
|
|
109
|
-
|
|
110
|
-
* **eslint:** add padding-line-between-statements rule ([46da359](https://github.com/alfa-laboratory/arui-presets-lint/commit/46da3591c67a6d44db73516d14419852837c4faa))
|
|
111
|
-
|
|
112
|
-
## [5.4.1](https://github.com/alfa-laboratory/arui-presets-lint/compare/v5.4.0...v5.4.1) (2021-01-25)
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
### Bug Fixes
|
|
116
|
-
|
|
117
|
-
* **eslint:** add ignore typescript generic type params ([f7c1d35](https://github.com/alfa-laboratory/arui-presets-lint/commit/f7c1d354234a1f7bec7da1c157333b97bccf6bdc))
|
|
118
|
-
|
|
119
|
-
# [5.4.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v5.3.1...v5.4.0) (2020-12-14)
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
### Features
|
|
123
|
-
|
|
124
|
-
* disable jsx-one-expression-per-line ([bcba37b](https://github.com/alfa-laboratory/arui-presets-lint/commit/bcba37b9516306011a8914403814990d6336d7e8))
|
|
125
|
-
|
|
126
|
-
## [5.3.1](https://github.com/alfa-laboratory/arui-presets-lint/compare/v5.3.0...v5.3.1) (2020-10-02)
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
### Bug Fixes
|
|
130
|
-
|
|
131
|
-
* adds new package for semantic-release ([e999b7b](https://github.com/alfa-laboratory/arui-presets-lint/commit/e999b7b7591c7d2eacbcb2a13d903ecb6855c895))
|
|
132
|
-
* adds token for npm-publish ([73ccf46](https://github.com/alfa-laboratory/arui-presets-lint/commit/73ccf46f0325d21eea8875e38756d78ef23d7add))
|
|
133
|
-
* changed rules for codeowners ([8d40eb0](https://github.com/alfa-laboratory/arui-presets-lint/commit/8d40eb0fb1d26440e751809d5cdaf85ae68f1094))
|
|
134
|
-
* changed rules for CODEOWNERS ([7d7cd38](https://github.com/alfa-laboratory/arui-presets-lint/commit/7d7cd3889e30ce08d8bac2367cc3ffc9da46cb1b))
|
|
135
|
-
* changed version ([26adf63](https://github.com/alfa-laboratory/arui-presets-lint/commit/26adf632ce7e79bb821aab5272c22bfed8c5f66b))
|
|
136
|
-
|
|
137
|
-
# [5.1.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v5.0.0...v5.1.0) (2020-09-03)
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
### Features
|
|
141
|
-
|
|
142
|
-
* update prettier, stylelint ([55b3aa4](https://github.com/alfa-laboratory/arui-presets-lint/commit/55b3aa472c3c584bf1606c765d20acd348ad06a0))
|
|
143
|
-
|
|
144
|
-
# [5.0.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v4.3.0...v5.0.0) (2020-08-26)
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
### Bug Fixes
|
|
148
|
-
|
|
149
|
-
* adds all deleted dependencies ([823a275](https://github.com/alfa-laboratory/arui-presets-lint/commit/823a2757ffa4f99c4c8ba6062ce9df926cde0858))
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
### Features
|
|
153
|
-
|
|
154
|
-
* add some rules ([7e1ec33](https://github.com/alfa-laboratory/arui-presets-lint/commit/7e1ec3380f5e2993fbe4032a42cd2699aaf8cbb8))
|
|
155
|
-
* add some rules ([ecec52a](https://github.com/alfa-laboratory/arui-presets-lint/commit/ecec52a6d7184c795f4e78bec55845f95e51d24f))
|
|
156
|
-
* resolve yarn.lock ([85b5ae7](https://github.com/alfa-laboratory/arui-presets-lint/commit/85b5ae771c4c8a08f9a30aad486a22a9934a116c))
|
|
157
|
-
* **eslint:** add .eslintrc.js in .eslintignore ([b22988a](https://github.com/alfa-laboratory/arui-presets-lint/commit/b22988a6a3b1e3afed54f76a4de3a85d63ff607d))
|
|
158
|
-
* **eslint:** removed node.js v8.* support ([abb7ed8](https://github.com/alfa-laboratory/arui-presets-lint/commit/abb7ed834518d82e47448f9fe91e5bd267d0f1ce))
|
|
159
|
-
* **eslint:** update config for eslint ([cad9237](https://github.com/alfa-laboratory/arui-presets-lint/commit/cad92374b6db1ea1db9d2f80eaaf0407f6dbb7fb))
|
|
160
|
-
* **eslint:** update deps ([5516c1c](https://github.com/alfa-laboratory/arui-presets-lint/commit/5516c1c16b51e471d89fd76b895c93ceb0acb750))
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
### BREAKING CHANGES
|
|
164
|
-
|
|
165
|
-
* dropped node.js 8 support, eslint was updated from 6 to 7
|
|
166
|
-
|
|
167
|
-
# [4.3.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v4.2.3...v4.3.0) (2020-08-24)
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
### Bug Fixes
|
|
171
|
-
|
|
172
|
-
* adds some fix ([396dfea](https://github.com/alfa-laboratory/arui-presets-lint/commit/396dfea6fa159c08287fcd9a5fff008bcff467df))
|
|
173
|
-
* **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)
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
### Features
|
|
177
|
-
|
|
178
|
-
* adds dependencies for semantic-release ([18c84a3](https://github.com/alfa-laboratory/arui-presets-lint/commit/18c84a3ed7b067497295983407ecd4fb0c7a2463))
|
|
179
|
-
* adds new github token ([a903035](https://github.com/alfa-laboratory/arui-presets-lint/commit/a9030359af27204457656f9caada2bee174387a9))
|
|
180
|
-
* adds new github workflows ([28621e2](https://github.com/alfa-laboratory/arui-presets-lint/commit/28621e2f4b301dbe0e03740645e3e8ffc62a8e07))
|
|
181
|
-
* adds release.config for semantic-release ([d517bfd](https://github.com/alfa-laboratory/arui-presets-lint/commit/d517bfdbc72c377805ec55de21dcc047169fea14))
|
|
182
|
-
* **nodejs:** deleted test for 8th node's version ([edf247e](https://github.com/alfa-laboratory/arui-presets-lint/commit/edf247ed5731cc7158e182bb1006a2370770133e))
|
|
183
|
-
|
|
184
|
-
<a name="4.2.3"></a>
|
|
185
|
-
## [4.2.3](https://github.com/alfa-laboratory/arui-presets-lint/compare/v4.2.2...v4.2.3) (2020-07-09)
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
### Features
|
|
189
|
-
|
|
190
|
-
* **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))
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
<a name="4.2.2"></a>
|
|
195
|
-
## [4.2.2](https://github.com/alfa-laboratory/arui-presets-lint/compare/v4.2.1...v4.2.2) (2020-06-22)
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
### Bug Fixes
|
|
199
|
-
|
|
200
|
-
* **eslint:** disable max-len explicitly ([e58103f](https://github.com/alfa-laboratory/arui-presets-lint/commit/e58103f))
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
<a name="4.2.1"></a>
|
|
205
|
-
## [4.2.1](https://github.com/alfa-laboratory/arui-presets-lint/compare/v4.2.0...v4.2.1) (2020-06-22)
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
### Bug Fixes
|
|
209
|
-
|
|
210
|
-
* **eslint:** disable conflict rules ([d4b2af5](https://github.com/alfa-laboratory/arui-presets-lint/commit/d4b2af5))
|
|
211
|
-
* **eslint:** remove max-len ([ab5be9c](https://github.com/alfa-laboratory/arui-presets-lint/commit/ab5be9c))
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
<a name="4.2.0"></a>
|
|
216
|
-
# [4.2.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v4.1.3...v4.2.0) (2020-04-30)
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
### Features
|
|
220
|
-
|
|
221
|
-
* **upgrade:** add no-useles-path-segments rule ([043fdc6](https://github.com/alfa-laboratory/arui-presets-lint/commit/043fdc6))
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
<a name="4.1.2"></a>
|
|
226
|
-
## [4.1.2](https://github.com/alfa-laboratory/arui-presets-lint/compare/v4.1.1...v4.1.2) (2020-04-09)
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
### Bug Fixes
|
|
230
|
-
|
|
231
|
-
* **eslint:** added avoidEscape for quotes ([cbd63d8](https://github.com/alfa-laboratory/arui-presets-lint/commit/cbd63d8))
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
### Features
|
|
235
|
-
|
|
236
|
-
* add dirnames eslint rule ([d33eb66](https://github.com/alfa-laboratory/arui-presets-lint/commit/d33eb66))
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
<a name="4.1.1"></a>
|
|
241
|
-
## [4.1.1](https://github.com/alfa-laboratory/arui-presets-lint/compare/v4.1.0...v4.1.1) (2020-04-06)
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
### Bug Fixes
|
|
245
|
-
|
|
246
|
-
* update yarn.lock ([eab5945](https://github.com/alfa-laboratory/arui-presets-lint/commit/eab5945))
|
|
247
|
-
* **arui-cssvars:** fix library ([0599231](https://github.com/alfa-laboratory/arui-presets-lint/commit/0599231))
|
|
248
|
-
* **arui-cssvars:** update lib version to skip warnings when linter rule is disabled ([c1e4565](https://github.com/alfa-laboratory/arui-presets-lint/commit/c1e4565))
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
<a name="4.1.0"></a>
|
|
253
|
-
# [4.1.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v4.0.0...v4.1.0) (2020-03-26)
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
### Bug Fixes
|
|
257
|
-
|
|
258
|
-
* **eslint:** allow to import devDependencies in storybook and test files ([ec264d4](https://github.com/alfa-laboratory/arui-presets-lint/commit/ec264d4))
|
|
259
|
-
* **eslint:** resolve conflict with prettier ([1be5db5](https://github.com/alfa-laboratory/arui-presets-lint/commit/1be5db5))
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
### Features
|
|
263
|
-
|
|
264
|
-
* **eslint:** add cypress support ([f93f601](https://github.com/alfa-laboratory/arui-presets-lint/commit/f93f601))
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
<a name="4.0.0"></a>
|
|
269
|
-
# [4.0.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v3.0.1...v4.0.0) (2020-03-18)
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
### Bug Fixes
|
|
273
|
-
|
|
274
|
-
* **eslint:** disable indent and max-len rules ([97967ed](https://github.com/alfa-laboratory/arui-presets-lint/commit/97967ed))
|
|
275
|
-
* **eslint:** use ts parser for all files ([609cda5](https://github.com/alfa-laboratory/arui-presets-lint/commit/609cda5))
|
|
276
|
-
* **package:** fix yarn audit errors ([3f73abc](https://github.com/alfa-laboratory/arui-presets-lint/commit/3f73abc))
|
|
277
|
-
* **package:** restore version string ([a59243c](https://github.com/alfa-laboratory/arui-presets-lint/commit/a59243c))
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
### Features
|
|
281
|
-
|
|
282
|
-
* add prettier ([077b698](https://github.com/alfa-laboratory/arui-presets-lint/commit/077b698))
|
|
283
|
-
* add ts example ([dd2c8b0](https://github.com/alfa-laboratory/arui-presets-lint/commit/dd2c8b0))
|
|
284
|
-
* new configuration, add prettier instructions ([3e0fa81](https://github.com/alfa-laboratory/arui-presets-lint/commit/3e0fa81))
|
|
285
|
-
* use prettier instead of prettier-eslint ([b954d26](https://github.com/alfa-laboratory/arui-presets-lint/commit/b954d26))
|
|
286
|
-
* **eslint:** add warn rules for formatting ([921947d](https://github.com/alfa-laboratory/arui-presets-lint/commit/921947d))
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
<a name="3.0.1"></a>
|
|
291
|
-
## [3.0.1](https://github.com/alfa-laboratory/arui-presets-lint/compare/v3.0.0...v3.0.1) (2020-02-12)
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
### Features
|
|
295
|
-
|
|
296
|
-
* remove jsx-one-expression-per-line ([edca46e](https://github.com/alfa-laboratory/arui-presets-lint/commit/edca46e))
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
<a name="3.0.0"></a>
|
|
301
|
-
# [3.0.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v2.0.1...v3.0.0) (2020-02-12)
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
### Bug Fixes
|
|
305
|
-
|
|
306
|
-
* **js-input:** fix eslint errors ([5b34d19](https://github.com/alfa-laboratory/arui-presets-lint/commit/5b34d19))
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
### Features
|
|
310
|
-
|
|
311
|
-
* **dependencies:** add eslint-plugin-react-hooks and extend rules. update plugin eslint ([4d73805](https://github.com/alfa-laboratory/arui-presets-lint/commit/4d73805))
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
<a name="2.0.1"></a>
|
|
316
|
-
## [2.0.1](https://github.com/alfa-laboratory/arui-presets-lint/compare/v2.0.0...v2.0.1) (2019-12-24)
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
### Bug Fixes
|
|
320
|
-
|
|
321
|
-
* **stylelint:** fix path to plugin, up plugin version ([e1ebf5e](https://github.com/alfa-laboratory/arui-presets-lint/commit/e1ebf5e))
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
<a name="2.0.0"></a>
|
|
326
|
-
# [2.0.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v1.2.1...v2.0.0) (2019-12-06)
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
<a name="1.2.1"></a>
|
|
331
|
-
## [1.2.1](https://github.com/alfa-laboratory/arui-presets-lint/compare/v1.1.0...v1.2.1) (2019-09-03)
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
### Bug Fixes
|
|
335
|
-
|
|
336
|
-
* **eslint:** disable multiline-comment-style rule ([65ea774](https://github.com/alfa-laboratory/arui-presets-lint/commit/65ea774))
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
### Features
|
|
340
|
-
|
|
341
|
-
* **stylelint:** use arui-cssvars ([2a2cc6e](https://github.com/alfa-laboratory/arui-presets-lint/commit/2a2cc6e))
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
<a name="1.2.0"></a>
|
|
346
|
-
# [1.2.0](https://github.com/alfa-laboratory/arui-presets-lint/compare/v1.1.0...v1.2.0) (2019-04-04)
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
### Features
|
|
350
|
-
|
|
351
|
-
* **stylelint:** use arui-cssvars ([2a2cc6e](https://github.com/alfa-laboratory/arui-presets-lint/commit/2a2cc6e))
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
<a name="1.1.0"></a>
|
|
356
|
-
# 1.1.0 (2019-03-13)
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
### Features
|
|
360
|
-
|
|
361
|
-
* **configuration:** add new stylistic rules ([d6500f6](https://github.com/alfa-laboratory/arui-presets-lint/commit/d6500f6))
|
package/CODEOWNERS
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
* @alfa-laboratory/frontstandards
|
package/MIGRATION_GUIDE_V6.md
DELETED
|
@@ -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
|