dx(eslint): lint cjs files

pull/667/head
Shahar Or (mightyiam) 5 years ago committed by Shahar Dawn Or
parent 0620b5eda0
commit d58121755f

@ -1,6 +1,6 @@
module.exports = {
extends: 'standard-with-typescript',
parserOptions: { project: [ './tsconfig.json', ] },
parserOptions: { project: ['./tsconfig.json'] },
rules: {
'import/newline-after-import': 'error',
'max-statements-per-line': 'error',

@ -21,6 +21,7 @@
"scope-empty": [2, "never"],
"scope-enum": [2, "always", [
"commitlint",
"eslint",
"typescript",
"vscode"
]]

@ -1,13 +1,13 @@
const isPathInside = require('is-path-inside');
const path = require('path');
const isPathInside = require('is-path-inside')
const path = require('path')
const ci = !!process.env.CI;
const watch = !!process.env.WATCH;
const live = !!process.env.LIVE;
const ci = !!process.env.CI
const watch = !!process.env.WATCH
const live = !!process.env.LIVE
const ip = 'bs-local.com'
const browserstack = require('./browserstack-karma.cjs');
const browserstack = require('./browserstack-karma.cjs')
// https://www.browserstack.com/open-source (text search "parallels")
const BROWSERSTACK_OPEN_SOURCE_CONCURRENCY = 5

@ -84,7 +84,7 @@
"scripts": {
"docs": "remark . --output",
"check-clean": "git diff --exit-code",
"lint:js": "eslint --ignore-path .gitignore .",
"lint:js": "eslint --ext .ts,.tsx,.cjs --ignore-path .gitignore .",
"lint:editorconfig": "editorconfig-checker",
"lint": "run-s lint:editorconfig lint:js",
"unit": "cross-env FILES_PATTERN=\"es/test/**/*.js\" karma start karma.conf.cjs",

Loading…
Cancel
Save