Add linter setup to sub-packages

This commit is contained in:
rijkvanzanten
2020-12-07 19:06:25 -05:00
parent f36966ca2a
commit 2e480432ec
8 changed files with 29 additions and 5 deletions

View File

@@ -0,0 +1,5 @@
const parentConfig = require('../../.eslintrc.js');
module.exports = {
...parentConfig,
};

View File

@@ -4,7 +4,9 @@
"description": "A small installer util that will create a directory, add boilerplate folders, and install Directus through npm.",
"main": "lib/index.js",
"bin": "./lib/index.js",
"scripts": {},
"scripts": {
"lint": "eslint \"lib/**/*.js\""
},
"keywords": [
"directus",
"installer"

View File

@@ -0,0 +1,5 @@
const parentConfig = require('../../.eslintrc.js');
module.exports = {
...parentConfig,
};

View File

@@ -29,7 +29,8 @@
"prebuild": "rimraf dist",
"build": "tsc --module commonjs && rollup -c rollup.config.ts",
"start": "rollup -c rollup.config.ts -w",
"prepublishOnly": "npm run build"
"prepublishOnly": "npm run build",
"lint": "eslint \"src/**/*.ts\""
},
"devDependencies": {
"rimraf": "^3.0.2",

View File

@@ -0,0 +1,5 @@
const parentConfig = require('../../.eslintrc.js');
module.exports = {
...parentConfig,
};

View File

@@ -7,9 +7,9 @@
"scripts": {
"build": "tsc --build && echo \"Built successfully\"",
"prepare": "npm run build",
"lint": "prettier --check .",
"test": "npm run lint && ts-mocha test/**/*.spec.ts",
"dev": "npm-watch build"
"dev": "npm-watch build",
"lint": "eslint \"src/**/*.ts\""
},
"watch": {
"build": {

View File

@@ -0,0 +1,5 @@
const parentConfig = require('../../.eslintrc.js');
module.exports = {
...parentConfig,
};

View File

@@ -7,7 +7,8 @@
"scripts": {
"build": "tsc",
"test": "mocha -r ts-node/register/transpile-only -r source-map-support/register --recursive 'tests/**/*.ts'",
"coverage": "nyc npm test"
"coverage": "nyc npm test",
"lint": "eslint \"src/**/*.ts\""
},
"keywords": [
"api",