mirror of
https://github.com/ComfortablyCoding/strapi-plugin-website-builder.git
synced 2025-12-17 00:04:10 -05:00
chore(lint & format): remove unnecessary rules and update paths
This commit is contained in:
parent
e0b580d153
commit
706124c70b
@ -1,8 +1,8 @@
|
||||
module.exports = {
|
||||
files: ['./server/**/*'],
|
||||
$schema: 'https://json.schemastore.org/eslintrc',
|
||||
env: {
|
||||
es6: true,
|
||||
node: true,
|
||||
},
|
||||
extends: ['eslint:recommended', 'plugin:node/recommended', 'prettier'],
|
||||
globals: {
|
||||
strapi: 'readonly',
|
||||
},
|
||||
};
|
||||
|
||||
@ -1,23 +1,15 @@
|
||||
module.exports = {
|
||||
files: ['./admin/**/*'],
|
||||
$schema: 'https://json.schemastore.org/eslintrc',
|
||||
parser: '@babel/eslint-parser',
|
||||
env: {
|
||||
browser: true,
|
||||
es6: true,
|
||||
},
|
||||
plugins: ['react'],
|
||||
extends: ['eslint:recommended', 'plugin:react/recommended', 'prettier'],
|
||||
parserOptions: {
|
||||
requireConfigFile: false,
|
||||
ecmaVersion: 2018,
|
||||
ecmaVersion: 'latest',
|
||||
sourceType: 'module',
|
||||
ecmaFeatures: {
|
||||
jsx: true,
|
||||
},
|
||||
sourceType: 'module',
|
||||
babelOptions: {
|
||||
presets: ['@babel/preset-react'],
|
||||
},
|
||||
},
|
||||
env: { browser: true, es6: true },
|
||||
settings: {
|
||||
react: {
|
||||
version: 'detect',
|
||||
|
||||
27
.eslintrc.js
27
.eslintrc.js
@ -1,28 +1,5 @@
|
||||
const frontendESLint = require('./.eslintrc.frontend.js');
|
||||
const backendESLint = require('./.eslintrc.backend.js');
|
||||
|
||||
module.exports = {
|
||||
$schema: 'https://json.schemastore.org/eslintrc',
|
||||
parserOptions: {
|
||||
ecmaVersion: 2018,
|
||||
},
|
||||
rules: {
|
||||
indent: ['error', 'tab'],
|
||||
'linebreak-style': ['error', 'unix'],
|
||||
quotes: ['error', 'single'],
|
||||
semi: ['error', 'always'],
|
||||
},
|
||||
globals: {
|
||||
strapi: 'readonly',
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
files: ['server/**/*'],
|
||||
...backendESLint,
|
||||
},
|
||||
{
|
||||
files: ['admin/**/*'],
|
||||
...frontendESLint,
|
||||
},
|
||||
],
|
||||
root: true,
|
||||
overrides: [require('./.eslintrc.backend.js'), require('./.eslintrc.frontend.js')],
|
||||
};
|
||||
|
||||
@ -7,5 +7,5 @@
|
||||
"useTabs": true,
|
||||
"arrowParens": "always",
|
||||
"endOfLine": "lf",
|
||||
"printWidth": 100
|
||||
"printWidth": 120
|
||||
}
|
||||
|
||||
@ -4,8 +4,8 @@
|
||||
"version": "2.2.3",
|
||||
"description": "A plugin for Strapi Headless CMS that provides the ability to trigger website builds manually, periodically or through model events.",
|
||||
"scripts": {
|
||||
"lint": "eslint . --fix",
|
||||
"format": "prettier --write **/*.{ts,js,json,yml}"
|
||||
"lint:fix": "eslint --fix \"./**/*.{js,yml}\"",
|
||||
"format:fix": "prettier --write \"./**/*.{js,json,yml,md}\"",
|
||||
},
|
||||
"author": {
|
||||
"name": "@ComfortablyCoding",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user