mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-02-24 02:46:11 -05:00
Fix
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
module.exports = {
|
||||
plugins: ['lodash', 'unused-imports'],
|
||||
extends: ['eslint:recommended'],
|
||||
ignorePatterns: ['lib', 'coverage', 'tests', 'jest.config.js'],
|
||||
ignorePatterns: ['lib', 'coverage', 'jest.config.js'],
|
||||
env: {
|
||||
node: true,
|
||||
},
|
||||
@@ -33,6 +33,20 @@ module.exports = {
|
||||
'no-constant-condition': 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
"files": ["**/*.test.ts", "**/*.test.tsx", "**/tests/**/*.ts"],
|
||||
"env": {
|
||||
"jest": true // makes expect, describe, it globals known
|
||||
},
|
||||
"rules": {
|
||||
"@typescript-eslint/no-explicit-any": "off",
|
||||
"@typescript-eslint/no-non-null-assertion": "off"
|
||||
},
|
||||
parserOptions: {
|
||||
tsconfigRootDir: __dirname,
|
||||
project: ['./tsconfig.test.json'],
|
||||
},
|
||||
}
|
||||
],
|
||||
rules: {
|
||||
'linebreak-style': [
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { strip, getSocialUrl } from './socials'
|
||||
import {discordLink} from "common/constants";
|
||||
import {getSocialUrl, strip} from '../../src/socials'
|
||||
import {discordLink} from "common/src/constants";
|
||||
|
||||
describe('strip', () => {
|
||||
describe('x/twitter', () => {
|
||||
@@ -15,5 +15,11 @@
|
||||
"common/*": ["./src/*", "../lib/*"]
|
||||
}
|
||||
},
|
||||
"include": ["src/**/*.ts"]
|
||||
"include": [
|
||||
"src/**/*.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"**/*.test.ts",
|
||||
"**/*.spec.ts"
|
||||
]
|
||||
}
|
||||
|
||||
13
common/tsconfig.test.json
Normal file
13
common/tsconfig.test.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"types": [
|
||||
"jest"
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts",
|
||||
"tests/**/*.ts"
|
||||
],
|
||||
"exclude": []
|
||||
}
|
||||
Reference in New Issue
Block a user