@podium/eslint-config 1.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/README.md +35 -0
- package/lib/base.js +12 -0
- package/lib/default.js +14 -0
- package/package.json +52 -0
package/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# @podium/eslint-config
|
|
2
|
+
|
|
3
|
+
Shared config for ESLint used in Podium projects.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
npm install --save-dev eslint @podium/eslint-config
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
Create and add this to `eslint.config.js`:
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
import config from "@podium/eslint-config";
|
|
17
|
+
|
|
18
|
+
export default config;
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
The default config should cover most needs, but you can extend or override if you need to.
|
|
22
|
+
|
|
23
|
+
```js
|
|
24
|
+
import config from "@podium/eslint-config";
|
|
25
|
+
|
|
26
|
+
export default [
|
|
27
|
+
...config,
|
|
28
|
+
/* Your customisations */
|
|
29
|
+
{
|
|
30
|
+
ignores: [".docusaurus/*"],
|
|
31
|
+
},
|
|
32
|
+
];
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
If you do need to change the config, consider whether that change should happen here in the shared config so it applies to all repos.
|
package/lib/base.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import prettierConfig from 'eslint-config-prettier';
|
|
2
|
+
import prettierPlugin from 'eslint-plugin-prettier/recommended';
|
|
3
|
+
import js from '@eslint/js';
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
js.configs.recommended,
|
|
7
|
+
prettierConfig,
|
|
8
|
+
prettierPlugin,
|
|
9
|
+
{
|
|
10
|
+
ignores: ['coverage/*', 'dist/*', 'node_modules/*', 'tap-snapshots/*'],
|
|
11
|
+
},
|
|
12
|
+
];
|
package/lib/default.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@podium/eslint-config",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Shared ESLint config for Podium modules",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"default": "./lib/default.js"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"lib"
|
|
13
|
+
],
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+ssh://git@github.com/podium-lib/eslint-config.git"
|
|
17
|
+
},
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/podium-lib/eslint-config/issues"
|
|
23
|
+
},
|
|
24
|
+
"homepage": "https://github.com/podium-lib/eslint-config#readme",
|
|
25
|
+
"scripts": {
|
|
26
|
+
"clean": "rimraf node_modules types",
|
|
27
|
+
"lint": "eslint .",
|
|
28
|
+
"lint:fix": "npm run lint -- --fix"
|
|
29
|
+
},
|
|
30
|
+
"keywords": [
|
|
31
|
+
"eslint",
|
|
32
|
+
"eslintconfig"
|
|
33
|
+
],
|
|
34
|
+
"author": "",
|
|
35
|
+
"license": "ISC",
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"eslint": ">= 9"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"eslint-config-prettier": "9.1.0",
|
|
41
|
+
"eslint-plugin-prettier": "5.2.1",
|
|
42
|
+
"globals": "15.9.0"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@semantic-release/changelog": "6.0.3",
|
|
46
|
+
"@semantic-release/git": "10.0.1",
|
|
47
|
+
"eslint": "9.8.0",
|
|
48
|
+
"prettier": "3.3.3",
|
|
49
|
+
"rimraf": "6.0.1",
|
|
50
|
+
"semantic-release": "24.0.0"
|
|
51
|
+
}
|
|
52
|
+
}
|