aboutsummaryrefslogtreecommitdiffstats
path: root/ui/.eslintrc.json
blob: 004803729b540e40154b39ee25f93bc9b570a0bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
	"parserOptions": {
		"ecmaVersion": 5
	},

	"env": {
		"browser": true,
		"jquery": true,
		"node": false
	},

	"rules": {
		"strict": [ "error", "function" ],

		// The following rule is relaxed due to too many violations:
		"no-unused-vars": [ "error", { "vars": "all", "args": "after-used" } ],

		// Too many violations:
		"camelcase": "off",
		"no-nested-ternary": "off"
	},

	"globals": {
		"define": false,
		"Globalize": false
	},

	"overrides": [
		{
			"files": [ "i18n/**/*.js" ],
			"rules": {

				// We want to keep all the strings in separate single lines
				"max-len": "off"
			}
		}
	]
}
mail": "wout@mick-wout.com" }, { "name": "Alex Ewerlöf", "email": "alex@userpixel.com", "web": "http://www.ewerlof.name" }, { "name": "Ulrich-Matthias Schäfer", "email": "ulima.ums@googlemail.com", "web": "https://svgdotjs.github.io/" }, { "name": "Jon Ege Ronnenberg", "email": "jon@svgjs.com", "url": "https://keybase.io/dotnetcarpenter" } ], "licenses": [ { "type": "MIT", "url": "http://www.opensource.org/licenses/mit-license.php" } ], "repository": { "type": "git", "url": "https://github.com/svgdotjs/svg.js.git" }, "github": "https://github.com/svgdotjs/svg.js", "license": "MIT", "typings": "./svg.js.d.ts", "scripts": { "build": "npm run fix && npm run rollup", "build:polyfills": "npx rollup -c .config/rollup.polyfills.js", "build:tests": "npx rollup -c .config/rollup.tests.js", "fix": "npx eslint ./src --fix", "lint": "npx eslint ./src", "rollup": "npx rollup -c .config/rollup.config.js", "server": "npx http-server ./ -d", "test": "npx karma start .config/karma.conf.js || true", "test:ci": "karma start .config/karma.conf.saucelabs.js", "test:svgdom": "node -r esm ./spec/runSVGDomTest.js || true", "zip": "zip -j dist/svg.js.zip -- LICENSE.txt README.md CHANGELOG.md dist/svg.js dist/svg.js.map dist/svg.min.js dist/svg.min.js.map dist/polyfills.js dist/polyfillsIE.js", "prepublishOnly": "rm -rf ./dist && npm run build && npm run build:polyfills && npm test", "postpublish": "npm run zip", "checkTests": "node spec/checkForAllTests.js" }, "devDependencies": { "@babel/core": "^7.9.6", "@babel/plugin-external-helpers": "^7.8.3", "@babel/plugin-transform-classes": "^7.9.5", "@babel/plugin-transform-runtime": "^7.9.6", "@babel/polyfill": "^7.8.7", "@babel/preset-env": "^7.9.6", "@babel/runtime": "^7.9.6", "@babel/runtime-corejs3": "^7.9.6", "@rollup/plugin-babel": "^5.0.0", "@rollup/plugin-commonjs": "^11.1.0", "@rollup/plugin-multi-entry": "^3.0.0", "@rollup/plugin-node-resolve": "^7.1.3", "@target/custom-event-polyfill": "github:Adobe-Marketing-Cloud/custom-event-polyfill", "babel-eslint": "^10.1.0", "core-js": "^3.6.5", "coveralls": "^3.1.0", "eslint": "^6.8.0", "eslint-config-standard": "^14.1.1", "eslint-plugin-import": "^2.20.2", "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", "esm": "^3.2.25", "http-server": "^0.12.3", "jasmine": "^3.5.0", "jasmine-core": "^3.5.0", "karma": "^5.0.4", "karma-chrome-launcher": "^3.1.0", "karma-coverage": "^2.0.2", "karma-firefox-launcher": "^1.3.0", "karma-jasmine": "^3.1.1", "karma-sauce-launcher": "^4.1.4", "rollup": "^2.7.6", "rollup-plugin-filesize": "^8.0.2", "rollup-plugin-terser": "^5.3.0", "svgdom": "^0.1.3", "typescript": "^3.8.3", "yargs": "^15.3.1" }, "browserslist": [ "last 1 version", "> 0.25%", "not maintained node versions", "not dead" ], "dependencies": {} }