mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-17 23:51:43 +03:00
af6411d5f8
* feat: setup testing for CTA * install with yarn * build before test * add yarn to npm runs for install / test start * add dev mode to link cli.js and api locally * remove fixtures * run tests serially * cli.js build-release avoids webpack error * assert on package.json contents as first check * run tauri build and split out custom asserts * add changefile * shorten workflow name * too short * exclude npm@6 on node@16 * increase timeout, tauri build takes a bit of time * only assert that the tauri script exists
56 lines
1.7 KiB
JavaScript
56 lines
1.7 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
|
|
env: {
|
|
node: true,
|
|
jest: true
|
|
},
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
ignorePatterns: ['.eslintrc.js', 'jest.config.js', 'test/**/*'],
|
|
extends: [
|
|
'standard-with-typescript',
|
|
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
'plugin:lodash-template/recommended',
|
|
// TODO: make this work with typescript
|
|
// 'plugin:node/recommended'
|
|
'prettier'
|
|
],
|
|
|
|
plugins: ['@typescript-eslint', 'node', 'security'],
|
|
|
|
parserOptions: {
|
|
tsconfigRootDir: __dirname,
|
|
project: './tsconfig.json'
|
|
},
|
|
|
|
globals: {
|
|
__statics: true,
|
|
process: true
|
|
},
|
|
|
|
// add your custom rules here
|
|
rules: {
|
|
// allow console.log during development only
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
// allow debugger during development only
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
'no-process-exit': 'off',
|
|
'security/detect-non-literal-fs-filename': 'warn',
|
|
'security/detect-unsafe-regex': 'error',
|
|
'security/detect-buffer-noassert': 'error',
|
|
'security/detect-child-process': 'warn',
|
|
'security/detect-disable-mustache-escape': 'error',
|
|
'security/detect-eval-with-expression': 'error',
|
|
'security/detect-no-csrf-before-method-override': 'error',
|
|
'security/detect-non-literal-regexp': 'error',
|
|
'security/detect-non-literal-require': 'warn',
|
|
'security/detect-object-injection': 'warn',
|
|
'security/detect-possible-timing-attacks': 'error',
|
|
'security/detect-pseudoRandomBytes': 'error',
|
|
'space-before-function-paren': 'off',
|
|
'@typescript-eslint/default-param-last': 'off',
|
|
'@typescript-eslint/strict-boolean-expressions': 0
|
|
}
|
|
}
|