-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
109 changed files
with
8,999 additions
and
14,924 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,9 +1,9 @@ | ||
.eslintrc.js | ||
.eslintrc.*.js | ||
configschema.d.ts | ||
webpack.config.js | ||
vetur.config.js | ||
dashboard/**/* | ||
extension/**/* | ||
node_modules/**/* | ||
script/**/* | ||
schemas/**/* | ||
schemas/**/* | ||
src/types/schemas/**/* |
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,65 +1,80 @@ | ||
/** | ||
* Some stuff is commented out that may need re-enabling if necessary. | ||
*/ | ||
|
||
const path = require('path'); | ||
|
||
module.exports = { | ||
root: true, | ||
env: { | ||
node: true, | ||
// es6: true, | ||
}, | ||
parser: 'vue-eslint-parser', | ||
parserOptions: { | ||
parser: '@typescript-eslint/parser', | ||
project: 'tsconfig.browser.json', | ||
sourceType: 'module', | ||
extraFileExtensions: ['.vue'], | ||
}, | ||
env: { | ||
es6: true, | ||
node: true, | ||
ecmaVersion: 2020, | ||
// sourceType: 'module', | ||
}, | ||
globals: { | ||
nodecg: 'readonly', | ||
NodeCG: 'readonly', | ||
}, | ||
plugins: [ | ||
'vue', | ||
'@typescript-eslint', | ||
// 'vue', | ||
], | ||
extends: [ | ||
'airbnb-base', | ||
'plugin:vue/recommended', | ||
'plugin:vue/essential', | ||
// 'airbnb-base', | ||
'airbnb-typescript/base', | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:import/typescript', | ||
], | ||
settings: { | ||
'import/core-modules': ['nodecg/types/browser'], | ||
'import/extensions': ['.js', '.jsx', '.ts', '.tsx'], | ||
'import/resolver': { | ||
node: { | ||
moduleDirectory: [ | ||
'node_modules', | ||
'../..', | ||
'.', | ||
], | ||
typescript: { | ||
// This is needed to properly resolve paths. | ||
project: 'tsconfig.browser.json', | ||
}, | ||
/* | ||
fibers in webpack has the issue "no binary", making this display | ||
an annoying error in VSCode, so leaving off for now. | ||
*/ | ||
/* webpack: { | ||
config: path.join(__dirname, 'webpack.config.js'), | ||
}, */ | ||
}, | ||
'import/extensions': ['.js', '.jsx', '.ts', '.tsx'], | ||
}, | ||
rules: { | ||
// Everything is compiled for the browser so dev dependencies are fine. | ||
'import/no-extraneous-dependencies': ['error', { devDependencies: true }], | ||
// max-len set to ignore "import" lines (as they usually get long and messy). | ||
// Also includes pattern for i18n JSON. | ||
'max-len': ['error', { code: 100, ignorePattern: '^import\\s.+\\sfrom\\s.+;$|"(.*?)": "(.*?)"' }], | ||
// I mainly have this off as it ruins auto import sorting in VSCode. | ||
'object-curly-newline': 'off', | ||
'@typescript-eslint/lines-between-class-members': 'off', | ||
'vue/html-self-closing': ['error'], | ||
'class-methods-use-this': 'off', | ||
'no-param-reassign': ['error', { | ||
props: true, | ||
ignorePropertyModificationsFor: [ | ||
'state', // for vuex state | ||
'acc', // for reduce accumulators | ||
'e', // for e.returnvalue | ||
], | ||
}], | ||
'import/extensions': ['error', 'ignorePackages', { | ||
js: 'never', | ||
jsx: 'never', | ||
ts: 'never', | ||
tsx: 'never', | ||
}], | ||
'import/no-extraneous-dependencies': ['error', { | ||
devDependencies: true, // Some places have dev deps imported where eslint complains. | ||
packageDir: ['.', '../..'], // Check for deps in NodeCG folder as well. | ||
}], | ||
'import/no-unresolved': [2, { caseSensitive: false }], | ||
'max-len': [ | ||
'error', | ||
{ | ||
'code': 100, | ||
ignorePattern: '"(.*?)": "(.*?)"' // Pattern for i18n JSON | ||
} | ||
], | ||
'lines-between-class-members': 'off', | ||
'class-methods-use-this': 'off', | ||
'object-curly-newline': 'off', | ||
// 'import/no-unresolved': [2, { commonjs: true, caseSensitive: false }], | ||
} | ||
}; |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// This is here just to make sure ESLint doesn't check NodeCG's own configuration. | ||
module.exports = { | ||
root: true, | ||
} |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.