Merge pull request #2076 from rbraunschweig/normalize-quotes
Normalize and enforce single quotes
This commit is contained in:
79
.eslintrc.js
79
.eslintrc.js
@@ -1,47 +1,48 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
"root": true,
|
'root': true,
|
||||||
"extends": "eslint:recommended",
|
'extends': 'eslint:recommended',
|
||||||
"globals": {
|
'globals': {
|
||||||
"wp": true
|
'wp': true,
|
||||||
},
|
},
|
||||||
"env": {
|
'env': {
|
||||||
"node": true,
|
'node': true,
|
||||||
"es6": true,
|
'es6': true,
|
||||||
"amd": true,
|
'amd': true,
|
||||||
"browser": true,
|
'browser': true,
|
||||||
"jquery": true
|
'jquery': true,
|
||||||
},
|
},
|
||||||
"parserOptions": {
|
'parserOptions': {
|
||||||
"ecmaFeatures": {
|
'ecmaFeatures': {
|
||||||
"globalReturn": true,
|
'globalReturn': true,
|
||||||
"generators": false,
|
'generators': false,
|
||||||
"objectLiteralDuplicateProperties": false,
|
'objectLiteralDuplicateProperties': false,
|
||||||
"experimentalObjectRestSpread": true
|
'experimentalObjectRestSpread': true,
|
||||||
},
|
},
|
||||||
"ecmaVersion": 2017,
|
'ecmaVersion': 2017,
|
||||||
"sourceType": "module"
|
'sourceType': 'module',
|
||||||
},
|
},
|
||||||
"plugins": [
|
'plugins': [
|
||||||
"import"
|
'import',
|
||||||
],
|
],
|
||||||
"settings": {
|
'settings': {
|
||||||
"import/core-modules": [],
|
'import/core-modules': [],
|
||||||
"import/ignore": [
|
'import/ignore': [
|
||||||
"node_modules",
|
'node_modules',
|
||||||
"\\.(coffee|scss|css|less|hbs|svg|json)$"
|
'\\.(coffee|scss|css|less|hbs|svg|json)$',
|
||||||
]
|
],
|
||||||
},
|
},
|
||||||
"rules": {
|
'rules': {
|
||||||
"no-console": 0,
|
'no-console': 0,
|
||||||
"comma-dangle": [
|
'quotes': ['error', 'single'],
|
||||||
"error",
|
'comma-dangle': [
|
||||||
|
'error',
|
||||||
{
|
{
|
||||||
"arrays": "always-multiline",
|
'arrays': 'always-multiline',
|
||||||
"objects": "always-multiline",
|
'objects': 'always-multiline',
|
||||||
"imports": "always-multiline",
|
'imports': 'always-multiline',
|
||||||
"exports": "always-multiline",
|
'exports': 'always-multiline',
|
||||||
"functions": "ignore"
|
'functions': 'ignore',
|
||||||
}
|
},
|
||||||
]
|
],
|
||||||
}
|
},
|
||||||
}
|
};
|
||||||
|
|||||||
29
.stylelintrc.js
Normal file
29
.stylelintrc.js
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
module.exports = {
|
||||||
|
'extends': 'stylelint-config-standard',
|
||||||
|
'rules': {
|
||||||
|
'no-empty-source': null,
|
||||||
|
'string-quotes': 'double',
|
||||||
|
'at-rule-no-unknown': [
|
||||||
|
true,
|
||||||
|
{
|
||||||
|
'ignoreAtRules': [
|
||||||
|
'extend',
|
||||||
|
'at-root',
|
||||||
|
'debug',
|
||||||
|
'warn',
|
||||||
|
'error',
|
||||||
|
'if',
|
||||||
|
'else',
|
||||||
|
'for',
|
||||||
|
'each',
|
||||||
|
'while',
|
||||||
|
'mixin',
|
||||||
|
'include',
|
||||||
|
'content',
|
||||||
|
'return',
|
||||||
|
'function',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
};
|
||||||
28
package.json
28
package.json
@@ -22,34 +22,6 @@
|
|||||||
"android 4",
|
"android 4",
|
||||||
"opera 12"
|
"opera 12"
|
||||||
],
|
],
|
||||||
"stylelint": {
|
|
||||||
"extends": "stylelint-config-standard",
|
|
||||||
"rules": {
|
|
||||||
"no-empty-source": null,
|
|
||||||
"at-rule-no-unknown": [
|
|
||||||
true,
|
|
||||||
{
|
|
||||||
"ignoreAtRules": [
|
|
||||||
"extend",
|
|
||||||
"at-root",
|
|
||||||
"debug",
|
|
||||||
"warn",
|
|
||||||
"error",
|
|
||||||
"if",
|
|
||||||
"else",
|
|
||||||
"for",
|
|
||||||
"each",
|
|
||||||
"while",
|
|
||||||
"mixin",
|
|
||||||
"include",
|
|
||||||
"content",
|
|
||||||
"return",
|
|
||||||
"function"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "webpack --progress --config resources/assets/build/webpack.config.js",
|
"build": "webpack --progress --config resources/assets/build/webpack.config.js",
|
||||||
"build:production": "webpack --env.production --progress --config resources/assets/build/webpack.config.js",
|
"build:production": "webpack --env.production --progress --config resources/assets/build/webpack.config.js",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import 'jquery';
|
import 'jquery';
|
||||||
|
|
||||||
// Import everything from autoload
|
// Import everything from autoload
|
||||||
import "./autoload/**/*"
|
import './autoload/**/*';
|
||||||
|
|
||||||
// import local dependencies
|
// import local dependencies
|
||||||
import Router from './util/Router';
|
import Router from './util/Router';
|
||||||
|
|||||||
@@ -60,4 +60,4 @@ class Router {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Router
|
export default Router;
|
||||||
|
|||||||
Reference in New Issue
Block a user