-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2076 from rbraunschweig/normalize-quotes
Normalize and enforce single quotes
- Loading branch information
Showing
5 changed files
with
71 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,48 @@ | ||
module.exports = { | ||
"root": true, | ||
"extends": "eslint:recommended", | ||
"globals": { | ||
"wp": true | ||
'root': true, | ||
'extends': 'eslint:recommended', | ||
'globals': { | ||
'wp': true, | ||
}, | ||
"env": { | ||
"node": true, | ||
"es6": true, | ||
"amd": true, | ||
"browser": true, | ||
"jquery": true | ||
'env': { | ||
'node': true, | ||
'es6': true, | ||
'amd': true, | ||
'browser': true, | ||
'jquery': true, | ||
}, | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"globalReturn": true, | ||
"generators": false, | ||
"objectLiteralDuplicateProperties": false, | ||
"experimentalObjectRestSpread": true | ||
'parserOptions': { | ||
'ecmaFeatures': { | ||
'globalReturn': true, | ||
'generators': false, | ||
'objectLiteralDuplicateProperties': false, | ||
'experimentalObjectRestSpread': true, | ||
}, | ||
"ecmaVersion": 2017, | ||
"sourceType": "module" | ||
'ecmaVersion': 2017, | ||
'sourceType': 'module', | ||
}, | ||
"plugins": [ | ||
"import" | ||
'plugins': [ | ||
'import', | ||
], | ||
"settings": { | ||
"import/core-modules": [], | ||
"import/ignore": [ | ||
"node_modules", | ||
"\\.(coffee|scss|css|less|hbs|svg|json)$" | ||
] | ||
'settings': { | ||
'import/core-modules': [], | ||
'import/ignore': [ | ||
'node_modules', | ||
'\\.(coffee|scss|css|less|hbs|svg|json)$', | ||
], | ||
}, | ||
"rules": { | ||
"no-console": 0, | ||
"comma-dangle": [ | ||
"error", | ||
'rules': { | ||
'no-console': 0, | ||
'quotes': ['error', 'single'], | ||
'comma-dangle': [ | ||
'error', | ||
{ | ||
"arrays": "always-multiline", | ||
"objects": "always-multiline", | ||
"imports": "always-multiline", | ||
"exports": "always-multiline", | ||
"functions": "ignore" | ||
} | ||
] | ||
} | ||
} | ||
'arrays': 'always-multiline', | ||
'objects': 'always-multiline', | ||
'imports': 'always-multiline', | ||
'exports': 'always-multiline', | ||
'functions': 'ignore', | ||
}, | ||
], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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', | ||
], | ||
}, | ||
], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,4 +60,4 @@ class Router { | |
} | ||
} | ||
|
||
export default Router | ||
export default Router; |