@mkappelhof/eslint-config-base 1.0.3

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/.eslintrc.yml ADDED
@@ -0,0 +1,42 @@
1
+ env:
2
+ browser: true
3
+ es2021: true
4
+ extends:
5
+ - eslint:recommended
6
+ - plugin:@typescript-eslint/recommended
7
+ - prettier
8
+ plugins:
9
+ - simple-import-sort
10
+ - '@typescript-eslint'
11
+ overrides: []
12
+ parser: '@typescript-eslint/parser'
13
+ parserOptions:
14
+ project:
15
+ - tsconfig.json
16
+ rules:
17
+ arrow-body-style:
18
+ - error
19
+ - as-needed
20
+ no-console: error
21
+ no-unused-vars: 'off'
22
+ import/prefer-default-export: 'off'
23
+ '@typescript-eslint/consistent-type-imports': error
24
+ '@typescript-eslint/no-explicit-any': error
25
+ '@typescript-eslint/no-unused-vars':
26
+ - error
27
+ - argsIgnorePattern: '^_'
28
+ varsIgnorePattern: '^_'
29
+ caughtErrorsIgnorePattern: '^_'
30
+ simple-import-sort/imports:
31
+ - error
32
+ - groups:
33
+ - - '^react'
34
+ - "^@?\\w"
35
+ - - '^(components|modules|utils)(/.*|$)'
36
+ - - "^\\u0000"
37
+ - - "^\\.\\.(?!/?$)"
38
+ - "^\\.\\./?$"
39
+ - - "^\\./(?=.*/)(?!/?$)"
40
+ - "^\\.(?!/?$)"
41
+ - "^\\./?$"
42
+ - - "^.+\\.?(css)$"
package/.prettierrc ADDED
@@ -0,0 +1 @@
1
+ "@mkappelhof/prettier-config"
package/CHANGELOG.md ADDED
@@ -0,0 +1,27 @@
1
+ # @mkappelhof/eslint-config-base
2
+
3
+ ## 1.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 4bb1446: update repository url
8
+ - Updated dependencies [4bb1446]
9
+ - @mkappelhof/prettier-config@1.0.3
10
+
11
+ ## 1.0.2
12
+
13
+ ### Patch Changes
14
+
15
+ - 0088404: update release pipeline
16
+ - 7885039: change to external packages
17
+ - Updated dependencies [0088404]
18
+ - Updated dependencies [7885039]
19
+ - @mkappelhof/prettier-config@1.0.2
20
+
21
+ ## 1.0.1
22
+
23
+ ### Patch Changes
24
+
25
+ - 9f6c9a4: add changeset
26
+ - Updated dependencies [9f6c9a4]
27
+ - @mkappelhof/prettier-config@1.0.1
package/index.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = { extends: './.eslintrc.yml' };
package/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "@mkappelhof/eslint-config-base",
3
+ "version": "1.0.3",
4
+ "main": "index.js",
5
+ "license": "MIT",
6
+ "repository": "git@github.com:mkappelhof/frontend-tools.git",
7
+ "scripts": {
8
+ "build": "rollup -c",
9
+ "test": "yaml-validator .eslintrc.yml"
10
+ },
11
+ "dependencies": {
12
+ "@mkappelhof/prettier-config": "*",
13
+ "@typescript-eslint/eslint-plugin": "6.3.0",
14
+ "@typescript-eslint/parser": "6.3.0",
15
+ "eslint-config-prettier": "9.0.0",
16
+ "eslint-plugin-prettier": "5.0.0",
17
+ "eslint-plugin-simple-import-sort": "10.0.0",
18
+ "yaml-validator": "5.1.0"
19
+ },
20
+ "peerDependencies": {
21
+ "eslint": "8.46.0",
22
+ "typescript": "5.1.6"
23
+ }
24
+ }
@@ -0,0 +1,19 @@
1
+ const copy = require('rollup-plugin-copy');
2
+
3
+ module.exports = {
4
+ input: './index.js',
5
+ output: {
6
+ file: './dist/index.js',
7
+ format: 'cjs',
8
+ },
9
+ plugins: [
10
+ copy({
11
+ targets: [
12
+ { src: './.eslintrc.yml', dest: './dist/' },
13
+ { src: './prettier', dest: './dist/' },
14
+ { src: './CHANGELOG.md', dest: './dist/' },
15
+ { src: './package.json', dest: './dist/' },
16
+ ],
17
+ }),
18
+ ],
19
+ };