Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit 25e0ab9

Browse files
author
george
committed
updates eslintrc to read correct directories + adds eslint process to circleci config
1 parent 0d7c2a3 commit 25e0ab9

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ jobs:
2424
- node_modules
2525
key: v1-dependencies-{{ checksum "package.json" }}
2626

27+
- run: npm run lint
2728
- run: npm run js:build
2829
- run: npm test

.eslintrc.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ const READONLY = "readonly"
55
const OFF = "off"
66
const ALWAYS = "always"
77

8-
const sitePath = path.resolve(__dirname, "site")
9-
const srcPath = path.resolve(__dirname, "js/src")
10-
const scriptsPath = path.resolve(__dirname, "scripts")
8+
const appPath = path.resolve(__dirname, "app")
9+
const srcPath = path.resolve(__dirname, "src/js")
10+
const binPath = path.resolve(__dirname, "bin")
1111
const nodeModulesPath = path.resolve(__dirname, "node_modules")
1212
const webpackConfigPath = path.resolve(__dirname, "webpack.common.js")
1313

@@ -54,7 +54,7 @@ module.exports = {
5454
"import/resolver": {
5555
node: {
5656
extensions: [".js"],
57-
paths: [sitePath, srcPath, scriptsPath],
57+
paths: [appPath, srcPath, binPath],
5858
moduleDirectory: [nodeModulesPath],
5959
},
6060
webpack: { config: webpackConfigPath },

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"build:quiet": "npm run js:build && webpack --config webpack.prod.js --display minimal",
1818
"test": "jest",
1919
"test:watch": "jest --watch",
20-
"lint": "eslint . --ext .js -c .eslintrc.js --ignore-path .eslintignore; exit 0",
20+
"lint": "eslint . --ext .js -c .eslintrc.js --ignore-path .eslintignore",
2121
"build:dist": "npm run js:build && npm run js:build:rollup && npm run css:build && npm run css:minify",
2222
"build:dist:release": "npm run clean && npm run scss:prepublish && npm run css:prepublish && npm run js:prepublish && npm run create-hashes",
2323
"prettify": "npm run js:prettify && npm run scss:prettify",

src/js/__tests__/modal.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import Undernet from "../"
2-
import { getFocusableElements } from "../utils"
32

43
const dom = `
54
<button data-target="new-modal">Open modal</button>

0 commit comments

Comments
 (0)