@nitra/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 +29 -0
- package/index.js +20 -0
- package/node.js +10 -0
- package/package.json +20 -0
- package/vue.js +18 -0
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# prettier-config
|
|
2
|
+
|
|
3
|
+
A Prettier [shareable config](https://prettier.io/docs/en/configuration.html#sharing-configurations)
|
|
4
|
+
for projects using **[Prettier](https://prettier.io/)** and
|
|
5
|
+
**[JavaScript Standard Style](https://standardjs.com/)** as ESLint rules or
|
|
6
|
+
separate processes.
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
yarn add @nitra/prettier-config -D
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
_This is only a shareable configuration. It does not install Prettier, Standard,
|
|
15
|
+
ESLint, or any other part of the tool chain._
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
Reference it in `package.json` using the `prettier` property:
|
|
20
|
+
|
|
21
|
+
```json
|
|
22
|
+
{
|
|
23
|
+
"name": "my-projects-name",
|
|
24
|
+
"prettier": "@nitra/prettier-config",
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@nitra/prettier-config": "^1.0.0"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
package/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
parserOptions: {
|
|
3
|
+
ecmaVersion: 2021,
|
|
4
|
+
sourceType: "module",
|
|
5
|
+
},
|
|
6
|
+
env: {
|
|
7
|
+
browser: true,
|
|
8
|
+
node: true,
|
|
9
|
+
},
|
|
10
|
+
plugins: ["vue"],
|
|
11
|
+
extends: [
|
|
12
|
+
"eslint:recommended",
|
|
13
|
+
"plugin:node/recommended-module",
|
|
14
|
+
"plugin:vue/vue3-strongly-recommended",
|
|
15
|
+
"prettier",
|
|
16
|
+
],
|
|
17
|
+
rules: {
|
|
18
|
+
"vue/multi-word-component-names": "off",
|
|
19
|
+
},
|
|
20
|
+
};
|
package/node.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nitra/eslint-config",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A Eslint shareable config for projects using 'Vue' and 'Node'.",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git@github.com:nitra/eslint-config.git"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"nitra",
|
|
11
|
+
"eslint",
|
|
12
|
+
"eslintconfig"
|
|
13
|
+
],
|
|
14
|
+
"files": [
|
|
15
|
+
"index.js",
|
|
16
|
+
"node.js",
|
|
17
|
+
"vue.js"
|
|
18
|
+
],
|
|
19
|
+
"license": "AGPL-3.0-or-later"
|
|
20
|
+
}
|
package/vue.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
parserOptions: {
|
|
3
|
+
ecmaVersion: 2021,
|
|
4
|
+
sourceType: "module",
|
|
5
|
+
},
|
|
6
|
+
env: {
|
|
7
|
+
browser: true,
|
|
8
|
+
},
|
|
9
|
+
plugins: ["vue"],
|
|
10
|
+
extends: [
|
|
11
|
+
"eslint:recommended",
|
|
12
|
+
"plugin:vue/vue3-strongly-recommended",
|
|
13
|
+
"prettier",
|
|
14
|
+
],
|
|
15
|
+
rules: {
|
|
16
|
+
"vue/multi-word-component-names": "off",
|
|
17
|
+
},
|
|
18
|
+
};
|