@advdominion/eslint-config 1.0.0 → 1.1.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.
Files changed (3) hide show
  1. package/README.md +3 -1
  2. package/index.js +2 -9
  3. package/package.json +28 -27
package/README.md CHANGED
@@ -3,9 +3,11 @@
3
3
  Включает в себя:
4
4
 
5
5
  - [js/recommended](https://eslint.org/docs/latest/use/configure/configuration-files#using-predefined-configurations) из ESLint
6
+ - [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier)
6
7
  - [eslint-plugin-simple-import-sort](https://github.com/lydell/eslint-plugin-simple-import-sort)
7
8
  - [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
8
9
  - [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue)
10
+ - [globals](https://github.com/sindresorhus/globals) (`browser` и `nodeBuiltin`)
9
11
 
10
12
  ## Использование
11
13
 
@@ -16,8 +18,8 @@
16
18
  ### Подключание
17
19
 
18
20
  ```js
19
- import { defineConfig } from 'eslint/config';
20
21
  import config from '@advdominion/eslint-config';
22
+ import { defineConfig } from 'eslint/config';
21
23
 
22
24
  export default defineConfig([
23
25
  ...config,
package/index.js CHANGED
@@ -80,7 +80,6 @@ const config = [
80
80
  {
81
81
  rules: {
82
82
  ...{
83
- 'vue/no-required-prop-with-default': 'warn',
84
83
  'vue/no-v-html': 'off',
85
84
  'vue/one-component-per-file': 'off',
86
85
  },
@@ -117,15 +116,9 @@ const config = [
117
116
  },
118
117
  },
119
118
  {
120
- files: ['build-scripts/*.js'],
119
+ files: ['**/*.vue'],
121
120
  rules: {
122
- 'no-console': 'off',
123
- },
124
- },
125
- {
126
- files: ['src/scripts/components/*.vue'],
127
- rules: {
128
- 'no-useless-assignment': 'off',
121
+ 'no-useless-assignment': 'off', // ESLint не умеет работать с этим правилом внутри <template>
129
122
  },
130
123
  },
131
124
  eslintConfigPrettier,
package/package.json CHANGED
@@ -1,29 +1,30 @@
1
1
  {
2
- "name": "@advdominion/eslint-config",
3
- "version": "1.0.0",
4
- "type": "module",
5
- "main": "index.js",
6
- "repository": {
7
- "type": "git",
8
- "url": "https://gitea.optiweb.ru/public/configs.git"
9
- },
10
- "license": "MIT",
11
- "publishConfig": {
12
- "access": "public"
13
- },
14
- "dependencies": {
15
- "@eslint/js": "^9.39.2",
16
- "eslint-config-prettier": "^10.1.8",
17
- "eslint-plugin-simple-import-sort": "^12.1.1",
18
- "eslint-plugin-unicorn": "^62.0.0",
19
- "eslint-plugin-vue": "^10.6.2",
20
- "globals": "^16.5.0",
21
- "vue-eslint-parser": "^10.2.0"
22
- },
23
- "peerDependencies": {
24
- "eslint": "^9.39.0"
25
- },
26
- "devDependencies": {
27
- "eslint": "^9.39.0"
28
- }
2
+ "name": "@advdominion/eslint-config",
3
+ "version": "1.1.0",
4
+ "type": "module",
5
+ "main": "index.js",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://gitea.optiweb.ru/public/configs.git"
9
+ },
10
+ "license": "MIT",
11
+ "publishConfig": {
12
+ "access": "public"
13
+ },
14
+ "dependencies": {
15
+ "@eslint/js": "^9.39.2",
16
+ "eslint-config-prettier": "^10.1.8",
17
+ "eslint-plugin-simple-import-sort": "^12.1.1",
18
+ "eslint-plugin-unicorn": "^62.0.0",
19
+ "eslint-plugin-vue": "^10.6.2",
20
+ "globals": "^16.5.0",
21
+ "vue-eslint-parser": "^10.2.0"
22
+ },
23
+ "peerDependencies": {
24
+ "eslint": "^9.39.0"
25
+ },
26
+ "devDependencies": {
27
+ "eslint": "^9.39.0"
28
+ },
29
+ "gitHead": "9d39746aa7bbda3557c14aade9d0f77b8293f64d"
29
30
  }