From 6c49bc479576fc5c5cd1df7572669a060263b290 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Fredrik=20Ki=C3=A6r?= <31612826+anders-kiaer@users.noreply.github.com> Date: Mon, 11 Nov 2019 14:57:02 +0100 Subject: [PATCH] Remove linting of autogenerated dummy data (#80) --- .prettierignore | 1 + examples/example_subsurface_map.py | 2 +- src/demo/SubsurfaceMapDemo.js | 2 +- src/demo/{data.json => example-data/subsurface-map.json} | 0 4 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .prettierignore rename src/demo/{data.json => example-data/subsurface-map.json} (100%) diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000000..8efd9f03a1 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +src/demo/example-data diff --git a/examples/example_subsurface_map.py b/examples/example_subsurface_map.py index e4ea39b2ca..4528780d68 100644 --- a/examples/example_subsurface_map.py +++ b/examples/example_subsurface_map.py @@ -3,7 +3,7 @@ import dash_html_components as html import webviz_subsurface_components -with open('../src/demo/data.json') as json_file: +with open('../src/demo/example-data/subsurface-map.json') as json_file: data = json.load(json_file) app = dash.Dash(__name__) diff --git a/src/demo/SubsurfaceMapDemo.js b/src/demo/SubsurfaceMapDemo.js index 5c26aedb34..e6d5451296 100644 --- a/src/demo/SubsurfaceMapDemo.js +++ b/src/demo/SubsurfaceMapDemo.js @@ -3,7 +3,7 @@ import React, { Component } from "react"; import Map from "../lib/components/Map"; -const data = require("./data.json"); +const data = require("./example-data/subsurface-map.json"); class SubsurfaceMapDemo extends Component { render() { diff --git a/src/demo/data.json b/src/demo/example-data/subsurface-map.json similarity index 100% rename from src/demo/data.json rename to src/demo/example-data/subsurface-map.json