Skip to content

Commit

Permalink
Upgrade dev tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Aug 26, 2024
1 parent eecad0d commit 2b35cce
Show file tree
Hide file tree
Showing 7 changed files with 140 additions and 1,810 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ dist/
coverage/
test/
*.md
**/wip/
10 changes: 2 additions & 8 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
const {getESLintConfig} = require('ocular-dev-tools/configuration');
const {getESLintConfig} = require('@vis.gl/dev-tools/configuration');

module.exports = getESLintConfig({
overrides: {parser: '',
parserOptions: {
project: ['./tsconfig.json'],
ecmaVersion: 2020
},
overrides: {
env: {
browser: true,
es2020: true,
node: true
},

overrides: [
{
// scripts use devDependencies
Expand All @@ -26,7 +21,6 @@ module.exports = getESLintConfig({
files: ['modules/**/*.ts', 'modules/**/*.js'],
rules: {
'no-use-before-define': 0,
'import/no-unresolved': 0,
'import/named': 0,
'@typescript-eslint/ban-ts-comment': 0 // We do need our ts-ignores
}
Expand Down
6 changes: 2 additions & 4 deletions .ocularrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ import {resolve} from 'path';

export default {
lint: {
paths: ['dev-docs', 'docs', 'modules', 'examples', 'test'] // 'website'
// extensions: ['js', 'md']
paths: ['dev-docs', 'docs', 'modules', 'examples', 'test'], // 'website'
extensions: ['js', 'mjs', 'jsx', 'ts', 'tsx', 'd.ts', 'md']
},

babel: false,

typescript: {
project: 'tsconfig.build.json'
},
Expand Down
3 changes: 0 additions & 3 deletions .prettierrc.cjs

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"@probe.gl/bench": "^4.0.0",
"@turf/destination": "^6.0.1",
"@types/tape-promise": "^4.0.1",
"ocular-dev-tools": "2.0.0-alpha.34",
"@vis.gl/dev-tools": "1.0.0-alpha.3",
"@vis.gl/ts-plugins": "1.0.0-alpha.3",
"pre-commit": "^1.2.2",
"puppeteer": "^22.0.0",
"tap-spec": "^5.0.0"
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.module.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
// "listEmittedFiles": true,
"plugins": [
{
"transform": "ocular-dev-tools/ts-transform-append-extension",
"transform": "@vis.gl/ts-plugins/ts-transform-append-extension",
"extensions": [".js"],
"after": true
},
{
"transform": "ocular-dev-tools/ts-transform-append-extension",
"transform": "@vis.gl/ts-plugins/ts-transform-append-extension",
"extensions": [".js"],
"afterDeclarations": true
}
Expand Down
Loading

0 comments on commit 2b35cce

Please sign in to comment.