Skip to content

Commit

Permalink
Use Arctic Ice Studio's base ESLint config
Browse files Browse the repository at this point in the history
The previously used ESLint rules have been replaced with the base config's
"eslint-config-arcticicestudio-base" (1).

References:

  (1) https://www.npmjs.com/package/eslint-config-arcticicestudio-base

GH-75
  • Loading branch information
arcticicestudio committed Jun 29, 2018
1 parent 6f2ace5 commit 9d72d34
Show file tree
Hide file tree
Showing 5 changed files with 1,043 additions and 541 deletions.
9 changes: 9 additions & 0 deletions .eslintignore
@@ -0,0 +1,9 @@
# Copyright (c) 2017-present Arctic Ice Studio <development@arcticicestudio.com>
# Copyright (c) 2017-present Sven Greb <development@svengreb.de>
#
# Project: Nord Visual Studio Code
# Repository: https://github.com/arcticicestudio/nord-visual-studio-code
# License: MIT

assets/*
node_modules/*
78 changes: 15 additions & 63 deletions .eslintrc.js
@@ -1,75 +1,27 @@
/*
* Copyright (c) 2017-present Arctic Ice Studio <development@arcticicestudio.com>
* Copyright (c) 2017-present Sven Greb <code@svengreb.de>
* Copyright (c) 2017-present Sven Greb <development@svengreb.de>
*
* Project: Nord Visual Studio Code
* Repository: https://github.com/arcticicestudio/nord-visual-studio-code
* License: MIT
* References:
* http://eslint.org/docs/rules
* http://eslint.org/docs/user-guide/configuring
* http://eslint.org/docs/user-guide/configuring#using-configuration-files
* http://eslint.org/docs/user-guide/configuring#specifying-environments
* http://eslint.org/docs/user-guide/configuring.html#specifying-globals
*/

/**
* @file The ESLint configuration.
* @author Arctic Ice Studio <development@arcticicestudio.com>
* @author Sven Greb <development@svengreb.de>
*/

module.exports = {
"env": {
"node": true,
"es6": true,
"browser": true
},
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {}
extends: "arcticicestudio-base",
plugins: ["json", "prettier"],
parser: "babel-eslint",
env: {
node: true,
browser: true
},
"plugins": [
"json"
],
"extends": [
"eslint:recommended"
],
"rules": {
// Style Guide
"array-bracket-spacing": ["error", "never"],
"comma-dangle": ["error", "never"],
"curly":["error", "all"],
"func-call-spacing": ["error", "never"],
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"no-duplicate-imports": "error",
"no-floating-decimal": "error",
"no-tabs": "error",
"no-trailing-spaces": ["error", {
"skipBlankLines": false
}],
"no-var": "error",
"no-whitespace-before-property": "error",
"quotes": ["error", "double"],
"semi": ["error", "always"],
// Error Prevention
"no-cond-assign": ["error", "always"],
"no-console": "off",
// Code Performance
"global-require": "warn",
// Documentation
"require-jsdoc": ["warn", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": false,
"ClassDeclaration": true,
"ArrowFunctionExpression": false
}
}],
"valid-jsdoc": ["error", {
"prefer": {
"arg": "param",
"argument": "param",
"class": "constructor",
"virtual": "abstract"
},
"requireParamDescription": true,
"requireReturnDescription": true
}]
rules: {
"prettier/prettier": "error"
}
};
1 change: 1 addition & 0 deletions .prettierignore
Expand Up @@ -5,5 +5,6 @@
# Repository: https://github.com/arcticicestudio/nord-visual-studio-code
# License: MIT

assets/*
node_modules/*
package-lock.json

0 comments on commit 9d72d34

Please sign in to comment.