chore: Shared eslint + prettier for packages (#117)
This commit is contained in:
parent
030752b4cc
commit
97a5edd746
4 changed files with 26 additions and 30 deletions
9
package-lock.json
generated
9
package-lock.json
generated
|
@ -17,6 +17,7 @@
|
|||
]
|
||||
},
|
||||
"apps/demo": {
|
||||
"name": "demo-astro-reactive-library",
|
||||
"version": "0.0.1",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
|
@ -36,6 +37,7 @@
|
|||
"apps/demo/packages/form": {},
|
||||
"apps/demo/packages/validator": {},
|
||||
"apps/docs": {
|
||||
"name": "docs-astro-reactive-library",
|
||||
"version": "0.0.1",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
|
@ -55,6 +57,7 @@
|
|||
"devDependencies": {}
|
||||
},
|
||||
"apps/landing-page": {
|
||||
"name": "astro-reactive-library-landing-page",
|
||||
"version": "0.0.1",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
@ -10464,7 +10467,8 @@
|
|||
}
|
||||
},
|
||||
"packages/form": {
|
||||
"version": "0.4.5",
|
||||
"name": "@astro-reactive/form",
|
||||
"version": "0.4.6",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@types/chai": "^4.3.3",
|
||||
|
@ -10490,7 +10494,8 @@
|
|||
}
|
||||
},
|
||||
"packages/validator": {
|
||||
"version": "0.0.4",
|
||||
"name": "@astro-reactive/validator",
|
||||
"version": "0.0.5",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@types/chai": "^4.3.3",
|
||||
|
|
17
packages/configs/.eslintrc.cjs
Normal file
17
packages/configs/.eslintrc.cjs
Normal file
|
@ -0,0 +1,17 @@
|
|||
/** @type {import("@types/eslint").Linter.Config} */
|
||||
module.exports = {
|
||||
env: {
|
||||
node: true,
|
||||
},
|
||||
parser: "@typescript-eslint/parser",
|
||||
plugins: ["@typescript-eslint", "prettier"],
|
||||
extends: [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"plugin:prettier/recommended",
|
||||
],
|
||||
rules: {
|
||||
// We don't want to leak logging into our user's console unless it's an error
|
||||
"no-console": ["error", { allow: ["warn", "error"] }],
|
||||
},
|
||||
};
|
|
@ -1,17 +1,4 @@
|
|||
/** @type {import("@types/eslint").Linter.Config} */
|
||||
module.exports = {
|
||||
env: {
|
||||
node: true,
|
||||
},
|
||||
parser: '@typescript-eslint/parser',
|
||||
plugins: ['@typescript-eslint', 'prettier'],
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
'plugin:prettier/recommended',
|
||||
],
|
||||
rules: {
|
||||
// We don't want to leak logging into our user's console unless it's an error
|
||||
'no-console': ['error', { allow: ['warn', 'error'] }],
|
||||
},
|
||||
extends: '../configs/.eslintrc.cjs',
|
||||
};
|
||||
|
|
|
@ -1,17 +1,4 @@
|
|||
/** @type {import("@types/eslint").Linter.Config} */
|
||||
module.exports = {
|
||||
env: {
|
||||
node: true,
|
||||
},
|
||||
parser: '@typescript-eslint/parser',
|
||||
plugins: ['@typescript-eslint', 'prettier'],
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
'plugin:prettier/recommended',
|
||||
],
|
||||
rules: {
|
||||
// We don't want to leak logging into our user's console unless it's an error
|
||||
'no-console': ['error', { allow: ['warn', 'error'] }],
|
||||
},
|
||||
extends: '../configs/.eslintrc.cjs',
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue