mirror of
https://github.com/directus/directus.git
synced 2026-01-23 08:58:22 -05:00
Add linter setup to sub-packages
This commit is contained in:
5
packages/create-directus-project/.eslintrc.js
Normal file
5
packages/create-directus-project/.eslintrc.js
Normal file
@@ -0,0 +1,5 @@
|
||||
const parentConfig = require('../../.eslintrc.js');
|
||||
|
||||
module.exports = {
|
||||
...parentConfig,
|
||||
};
|
||||
@@ -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"
|
||||
|
||||
5
packages/format-title/.eslintrc.js
Normal file
5
packages/format-title/.eslintrc.js
Normal file
@@ -0,0 +1,5 @@
|
||||
const parentConfig = require('../../.eslintrc.js');
|
||||
|
||||
module.exports = {
|
||||
...parentConfig,
|
||||
};
|
||||
@@ -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",
|
||||
|
||||
5
packages/schema/.eslintrc.js
Normal file
5
packages/schema/.eslintrc.js
Normal file
@@ -0,0 +1,5 @@
|
||||
const parentConfig = require('../../.eslintrc.js');
|
||||
|
||||
module.exports = {
|
||||
...parentConfig,
|
||||
};
|
||||
@@ -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": {
|
||||
|
||||
5
packages/sdk-js/.eslintrc.js
Normal file
5
packages/sdk-js/.eslintrc.js
Normal file
@@ -0,0 +1,5 @@
|
||||
const parentConfig = require('../../.eslintrc.js');
|
||||
|
||||
module.exports = {
|
||||
...parentConfig,
|
||||
};
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user